File TODO changed (mode: 100644) (index 6d8ef97..92544c5) |
1 |
1 |
== Where I stopped last time == |
== Where I stopped last time == |
2 |
|
[ ] |
|
3 |
2 |
|
|
4 |
3 |
== BEFORE NEXT RELEASE == |
== BEFORE NEXT RELEASE == |
5 |
|
[ ] "Do not verify the certificate" - not clear which cert! |
|
|
4 |
|
[ ] css: add 'position: fixed' to header (still have problems with |
|
5 |
|
'display: table-row' for header, body, footer) |
|
6 |
|
[ ] about CI: https://opensource.com/business/15/12/git-docker-continuous-integration-tex-documents |
|
7 |
|
[ ] Integrate with https://semaphoreci.com/ |
|
8 |
|
[ ] Take a look at cgit interface: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=123d0ba9b8c92ce00d2a0b2f98c5f329353e70d1 |
|
9 |
|
[ ] Configure, first time, if we auto insert a "anon push" rule. |
|
10 |
|
[ ] lock: web: show when a repo is locked |
|
11 |
|
[ ] repo lock by ssh? |
|
12 |
|
[ ] wh: Maybe separate push/create repo/create branch, to be able to have |
|
13 |
|
custom filtering. For example, a regex for pushed refs, or a regex |
|
14 |
|
for repo name, or a regex for branch name. |
|
15 |
|
Seems we have a regex for all... |
|
16 |
|
[ ] watch: really do something with the users watching a user. |
|
17 |
|
when target created a repo, for example. |
|
18 |
|
Also when target user is watching something else? Interesting! |
|
19 |
|
[ ] watch: add unit test for user watch |
|
20 |
|
[ ] watch: 'repo': url is not correct! Always redirects to "last events". |
|
21 |
|
[ ] "Clone this repository using ssh (do not forget to upload a key first)" |
|
22 |
|
Do a link to upload a key. |
|
23 |
|
[ ] Important to state boldly: "You do not have to have an account |
|
24 |
|
to contribute to a project!" |
|
25 |
|
[ ] Code Deployment for Amazon (Dani). |
|
26 |
|
[ ] Investigate unlogged PostgreSQL tables and hstore. To replace the custom |
|
27 |
|
cache. (http://bonesmoses.org/2015/12/04/pg-phriday-displaced-durability/) |
|
28 |
|
[ ] Some people may be behind a firewall and webhooks will not work correctly. |
|
29 |
|
Add another type: socket, but in listen mode, and provide notifications |
|
30 |
|
on that socket. Socket will remain opened as long as needed. Cool! |
|
31 |
|
[ ] watch: pay attention to not send updates about private repos! |
|
32 |
|
[ ] Tell the user how s/he can get an avatar. |
|
33 |
|
[ ] watch: when a user is watching a user, what notifications should receive? |
|
34 |
|
Create repo. Else? |
|
35 |
|
[ ] watch: when a user is watching a repo, it already watches bugs? |
|
36 |
|
Should s/he? |
|
37 |
|
[ ] wh: last_output pollutes too must 'user::' namepsace. => too many data |
|
38 |
|
loaded => bigger latency. And last_output is not very important |
|
39 |
|
everywhere. |
|
40 |
|
Maybe move whole wh outside of 'user' namespace? It is accessed seldom. |
|
41 |
|
[ ] If user is not logged in, do not show "Edit", "Close" or "Delete" buttons. |
|
42 |
|
[ ] Cache how many users watch a repo. |
|
43 |
|
We should have a cron that recomputes the numbers? |
6 |
44 |
[ ] wh: at push time the triggers are not called! |
[ ] wh: at push time the triggers are not called! |
7 |
45 |
[ ] Auto subscribe users to blog, but allow them to unsubscribe from e-mail. |
[ ] Auto subscribe users to blog, but allow them to unsubscribe from e-mail. |
8 |
46 |
[ ] Do a small tutorial on how you can create themes (Gabi). |
[ ] Do a small tutorial on how you can create themes (Gabi). |
9 |
47 |
[ ] rate another repo (Gabi) |
[ ] rate another repo (Gabi) |
10 |
48 |
[ ] suggestions: at least notify by e-mail. |
[ ] suggestions: at least notify by e-mail. |
11 |
|
[ ] For pull request by anon push, add a button to send an e-mail with an |
|
|
49 |
|
[ ] For pull requests by anon push, add a button to send an e-mail with an |
12 |
50 |
authorization code to be able to destroy/edit pr. |
authorization code to be able to destroy/edit pr. |
13 |
51 |
The e-mail can be taken from commits. |
The e-mail can be taken from commits. |
14 |
52 |
Maybe we should reject pr with wrong e-mail addresses? |
Maybe we should reject pr with wrong e-mail addresses? |
|
16 |
54 |
and teach user how to disable it. |
and teach user how to disable it. |
17 |
55 |
[ ] When a php script exists, check that every db res was freed! |
[ ] When a php script exists, check that every db res was freed! |
18 |
56 |
I found one case in keys.inc.php! |
I found one case in keys.inc.php! |
19 |
|
[ ] Mark in cache that we updated first use to not update it too often. |
|
20 |
|
[ ] Keep in history also the fetches? |
|
|
57 |
|
[ ] Keep in history also the fetches? Too much data? |
21 |
58 |
[ ] When showing files, show total number of lines, size in bytes, type, |
[ ] When showing files, show total number of lines, size in bytes, type, |
22 |
59 |
button for download, history, blame, printable, history. |
button for download, history, blame, printable, history. |
23 |
|
[ ] Suggest 4096 bits RSA keys instead of 2048. |
|
24 |
60 |
[ ] https://rocketgit.com/user/user/repo/source/log |
[ ] https://rocketgit.com/user/user/repo/source/log |
25 |
61 |
We may want to transform the author into a link to rocketgit user page. |
We may want to transform the author into a link to rocketgit user page. |
26 |
62 |
[ ] Binary files show wrong on "Tree" menu. |
[ ] Binary files show wrong on "Tree" menu. |
File inc/repo.inc.php changed (mode: 100644) (index 656c086..e3caa0f) |
... |
... |
function rg_repo_list_query($db, $url, $sql, $params) |
1167 |
1167 |
|
|
1168 |
1168 |
/* |
/* |
1169 |
1169 |
* List repos of page user 'ui'. |
* List repos of page user 'ui'. |
|
1170 |
|
* @uid - owner of the to be listed repos |
1170 |
1171 |
*/ |
*/ |
1171 |
1172 |
function rg_repo_list($db, $rg, $url, $uid) |
function rg_repo_list($db, $rg, $url, $uid) |
1172 |
1173 |
{ |
{ |
1173 |
1174 |
rg_log("repo_list: url=$url uid=" . $uid |
rg_log("repo_list: url=$url uid=" . $uid |
1174 |
1175 |
. " login_uid=" . $rg['login_ui']['uid']); |
. " login_uid=" . $rg['login_ui']['uid']); |
1175 |
1176 |
|
|
1176 |
|
$params = array("uid" => $uid); |
|
|
1177 |
|
$params = array( |
|
1178 |
|
"uid" => $uid, |
|
1179 |
|
"login_uid" => $rg['login_ui']['uid']); |
1177 |
1180 |
|
|
1178 |
|
$add = ""; |
|
1179 |
1181 |
if ($uid > 0) |
if ($uid > 0) |
1180 |
|
$add = " AND uid = @@uid@@"; |
|
|
1182 |
|
$add = ' AND uid = @@uid@@'; |
|
1183 |
|
else |
|
1184 |
|
$add = ' AND uid != @@login_uid@@'; |
1181 |
1185 |
|
|
1182 |
1186 |
// TODO: also admin must be able to see them? |
// TODO: also admin must be able to see them? |
1183 |
1187 |
if (($rg['login_ui']['uid'] == 0) |
if (($rg['login_ui']['uid'] == 0) |
|
... |
... |
function rg_repo_search_high_level($db, $rg, $ui, $url) |
1942 |
1946 |
|
|
1943 |
1947 |
/* |
/* |
1944 |
1948 |
* Discover top menu |
* Discover top menu |
|
1949 |
|
* @ui - act like login_ui |
1945 |
1950 |
*/ |
*/ |
1946 |
1951 |
function rg_repo_discover($db, $op, $rg, $ui) |
function rg_repo_discover($db, $op, $rg, $ui) |
1947 |
1952 |
{ |
{ |
File inc/ssh.inc.php changed (mode: 100644) (index 7ef5d14..e5e09a0) |
... |
... |
function rg_ssh_repo($db, $uid, $paras) |
69 |
69 |
|
|
70 |
70 |
echo 'Repo: ' . $ri['name'] . "\n"; |
echo 'Repo: ' . $ri['name'] . "\n"; |
71 |
71 |
echo 'Repo type: ' . ($ri['public'] == 1 ? 'public' : 'private') . "\n"; |
echo 'Repo type: ' . ($ri['public'] == 1 ? 'public' : 'private') . "\n"; |
72 |
|
echo 'Description:' . "\n"; |
|
73 |
|
$_d = explode("\n", $ri['description']); |
|
74 |
|
if (!empty($_d)) { |
|
75 |
|
foreach ($_d as $_line) |
|
76 |
|
echo ' ' . $_line . "\n"; |
|
77 |
|
} |
|
78 |
|
echo 'Creation time: ' . gmdate('Y-m-d', $ri['itime']) . ' UTC' . "\n"; |
|
79 |
|
echo 'Disk used: ' . rg_1024($ri['disk_used_mb'] * 1024 * 1024) . "\n"; |
|
|
72 |
|
echo 'Creation time: ' . |
|
73 |
|
gmdate('Y-m-d', $ri['itime']) . ' UTC' . "\n"; |
|
74 |
|
echo 'Disk used: ' . |
|
75 |
|
rg_1024($ri['disk_used_mb'] * 1024 * 1024) . "\n"; |
80 |
76 |
|
|
81 |
77 |
if ($ri['master'] > 0) { |
if ($ri['master'] > 0) { |
82 |
78 |
$mri = rg_repo_info($db, $ri['master'], 0, ''); |
$mri = rg_repo_info($db, $ri['master'], 0, ''); |