List of commits:
Subject Hash Author Date (UTC)
Deal correctly with cache regarding last_bug_id 705351cdea6af55f9dd61de0d85d41b8ac33fc88 Catalin(ux) M. BOIE 2015-12-03 21:01:08
Settle to Affero GPLv3+ 679d4032059256a01610e65cbff5496d32d9fc7d Catalin(ux) M. BOIE 2015-12-03 19:40:12
Missing Affero dee2c08fc8a0371ac37f6f00bf7f3e2e01f92e92 Catalin(ux) M. BOIE 2015-12-03 19:36:10
DO not show 2fa hint for a visiting user 4ff8837ef0f45572592f1d81724737b3732a046a Catalin(ux) M. BOIE 2015-12-03 17:25:24
Let the user choose the e-mail, no defaults should be suggested 09450741613a407c09bb465bff8a3c19c565df9a Catalin(ux) M. BOIE 2015-12-02 18:12:08
Pass uid for all events; more fixes for unit tests 866e43baf739ae7072949559d1c7e089c086af76 Catalin(ux) M. BOIE 2015-11-19 19:28:26
404 http error was receive for showing blobs ending in .php or .html ff87d956360a86e88a751d4c391585c84bb1e132 Catalin(ux) M. BOIE 2015-11-18 20:32:50
When creating an array, last_bug_id is set now correctly f679840c7ac3879aae69f488c561a5bd73ce71f1 Catalin(ux) M. BOIE 2015-11-18 19:14:48
We allow empty description for bugs c5a1b4057963eac575cc3d0d4872c4519fea80b0 Catalin(ux) M. BOIE 2015-11-18 18:26:39
Show the repo # on main repo page c72f4d8627ab577a92c5531ed7afb9e55a6bfd1b Catalin(ux) M. BOIE 2015-11-18 18:25:00
Bumped version to 0.42 8e9fab68ff08040402c0aa25539d1e8b29258f7d Catalin(ux) M. BOIE 2015-11-18 18:14:40
Renamed the virtual machines files 040c9f3a87826a52713b3b5f48d19c83236f8aa8 Catalin(ux) M. BOIE 2015-11-18 18:13:57
Admin user must not confirm the account by e-mail 0a81a2824087d9dcd2d1981c860946fd49cc8bf7 Catalin(ux) M. BOIE 2015-11-18 18:04:26
Bump the version to 0.41 363368555480d4c79c13867805c59541fd59e37c Catalin(ux) M. BOIE 2015-11-18 16:37:16
Mostly debug signaling by cache 2cd13a1f01403ebe733ef64ff2446b93e2cd46af Catalin(ux) M. BOIE 2015-11-18 16:36:40
Only texts changes. 37b6e035a5027c99a8b21672cef5431673320892 Catalin(ux) M. BOIE 2015-11-17 17:58:52
webhooks fixes 422d74f1cd4133e73ceb3edbb7a7da6d48c102f2 Catalin(ux) M. BOIE 2015-11-17 15:53:10
Checkpoint: ip/user fixes for remote connections, some pull request fixes and unit test start c8ac332f2ffda6149048dd17eaef8ff2f2920650 Catalin(ux) M. BOIE 2015-11-07 05:30:04
Added webhooks c2b73a8e494c4c61ce2d3f0d4101f0836a5a0df6 Catalin(ux) M. BOIE 2015-10-29 03:55:44
Mostly totp fixes; all tests pass; css fixes b4e220bf8823cad220183930949e80a6ec7f2fb3 Catalin(ux) M. BOIE 2015-10-17 12:02:14
Commit 705351cdea6af55f9dd61de0d85d41b8ac33fc88 - Deal correctly with cache regarding last_bug_id
Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-12-03 21:01
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2015-12-03 21:01
Parent(s): 679d4032059256a01610e65cbff5496d32d9fc7d
Signer:
Signing key:
Signing status: N
Tree: cd33b54e6f45796e4f44dcaf96c01fe73af1d0ae
File Lines added Lines deleted
inc/bug.inc.php 2 5
inc/repo.inc.php 4 3
inc/user.inc.php 2 2
File inc/bug.inc.php changed (mode: 100644) (index f24ef11..93a595b)
... ... function rg_bug_next_id($db, $repo_id)
246 246 rg_sql_free_result($res); rg_sql_free_result($res);
247 247 $next_bug_id = $row['next_bug_id']; $next_bug_id = $row['next_bug_id'];
248 248
249 // TODO
250 // We must not do this. Else, repo_info will find the empty
251 // repo info!
252 //$key = 'repo_by_id' . '::' . $repo_id . '::' . 'last_bug_id';
253 //rg_cache_set($key, $next_bug_id, RG_SOCKET_NO_WAIT);
249 $key = 'repo_by_id' . '::' . $repo_id . '::' . 'last_bug_id';
250 rg_cache_set($key, $next_bug_id, RG_SOCKET_NO_WAIT);
254 251 break; break;
255 252 } }
256 253
File inc/repo.inc.php changed (mode: 100644) (index 80f6ce7..4de9a39)
... ... function rg_repo_info($db, $repo_id, $uid, $repo_name)
689 689
690 690 if ($repo_id > 0) { if ($repo_id > 0) {
691 691 $c = rg_cache_get('repo_by_id' . '::' . $repo_id); $c = rg_cache_get('repo_by_id' . '::' . $repo_id);
692 if ($c !== FALSE) {
692 if (($c !== FALSE) && isset($c['repo_id'])) {
693 693 $ret = $c; $ret = $c;
694 694 break; break;
695 695 } }
 
... ... function rg_repo_edit($db, $login_ui, &$new)
981 981 $new['deleted'] = 0; $new['deleted'] = 0;
982 982 $new['disk_used_mb'] = 0; $new['disk_used_mb'] = 0;
983 983 $new['git_dir_done'] = 0; $new['git_dir_done'] = 0;
984 $new['last_bug_id'] = 0;
984 985
985 986 $sql = "INSERT INTO repos (uid, master, name" $sql = "INSERT INTO repos (uid, master, name"
986 987 . ", itime, max_commit_size, description" . ", itime, max_commit_size, description"
 
... ... function rg_repo_edit($db, $login_ui, &$new)
1051 1052
1052 1053 $new['ok'] = 1; $new['ok'] = 1;
1053 1054 $new['exists'] = 1; $new['exists'] = 1;
1054 rg_cache_set("repo_by_id::" . $new['repo_id'], $new, RG_SOCKET_NO_WAIT);
1055 rg_cache_merge("repo_by_id::" . $new['repo_id'], $new,
1056 RG_SOCKET_NO_WAIT);
1055 1057 rg_cache_set("repo_by_name::" . $login_ui['uid'] . "::" rg_cache_set("repo_by_name::" . $login_ui['uid'] . "::"
1056 1058 . $new['name'], $new['repo_id'], RG_SOCKET_NO_WAIT); . $new['name'], $new['repo_id'], RG_SOCKET_NO_WAIT);
1057 1059
 
... ... function rg_repo_edit_high_level($db, &$rg)
1604 1606 $rg['ri']['description'] = trim(rg_var_str('description')); $rg['ri']['description'] = trim(rg_var_str('description'));
1605 1607 $rg['ri']['public'] = rg_var_bool('public'); $rg['ri']['public'] = rg_var_bool('public');
1606 1608 $rg['ri']['license'] = trim(rg_var_str('license')); $rg['ri']['license'] = trim(rg_var_str('license'));
1607 $rg['ri']['last_bug_id'] = 0;
1608 1609 rg_repo_cosmetic($rg['ri']); rg_repo_cosmetic($rg['ri']);
1609 1610 //rg_log_ml("CHECK: after repo edit: rg[ri]=" . print_r($rg['ri'], TRUE)); //rg_log_ml("CHECK: after repo edit: rg[ri]=" . print_r($rg['ri'], TRUE));
1610 1611
File inc/user.inc.php changed (mode: 100644) (index e739774..2b130e2)
... ... function rg_user_edit($db, $d)
538 538 if (!$update_pass) if (!$update_pass)
539 539 unset($d['pass']); unset($d['pass']);
540 540 unset($d['pass2']); // not needed in cache unset($d['pass2']); // not needed in cache
541 rg_cache_merge('user' . '::' . $d['uid'] . '::' . 'info',
542 $d, RG_SOCKET_NO_WAIT);
541 rg_cache_merge('user' . '::' . $d['uid']
542 . '::' . 'info', $d, RG_SOCKET_NO_WAIT);
543 543 } }
544 544
545 545 // TODO: should we cache here the user_by_uid and user_by_name // TODO: should we cache here the user_by_uid and user_by_name
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main