Marcin Kuzminski
dcf4089df3
nav-bar: added placeholder for notice box.
2018-07-16 19:43:00 +02:00
Marcin Kuzminski
c4e1783d4f
notifications: use an explicit FK mark when creating notifications, previous way was prone to cache problems.
2018-07-16 19:07:27 +02:00
Marcin Kuzminski
1bd980d752
emails: ensure none empty emails are fetched from admin accounts in recipinets aren't specified.
...
- in some cases we could create LDAP or other external accounts with empty email. That could crash the mailing lib.
2018-07-16 18:24:46 +02:00
Marcin Kuzminski
0923d47375
release: merge back stable branch into default
2018-07-16 17:50:03 +02:00
Marcin Kuzminski
8940badfb0
release: Start preparation for 4.12.4
2018-07-16 15:34:17 +02:00
Daniel Dourvaris
b64e9a326f
integrations: added branch_head into URL variables. This allow triggering more explicit
...
build on webhooks/jenkins. branch_head is the last commit of pushed branch so the build
system doesn't have to figure it out itself.
- in often updated projects without this explicit specified it could happen that
the pushed braanch could change when CI systems fetches the code.
2018-07-16 14:14:11 +02:00
Marcin Kuzminski
03e412b2fa
caches: disable caches in predicates.
...
- predicates store objects inside request which we later frequnetly use.
- generally we'll loose ~20ms on this call but this fixes a lot of problems
especially when deleting resources and they are still in cache.
2018-07-14 18:18:35 +02:00
Marcin Kuzminski
9665179aa5
caches: use new decorator that uses conditional caches skipping dogpile if cache is disabled.
2018-07-14 18:17:42 +02:00
Marcin Kuzminski
6e45dc9605
caches: introduce new conditional cache function.
2018-07-14 18:17:02 +02:00
Marcin Kuzminski
23c4d38e15
tests: fixed name generation for shadow repos
2018-07-13 21:02:50 +02:00
Marcin Kuzminski
357405796f
caches: removed unused cache option from repo by id fetch.
2018-07-13 19:28:31 +02:00
Marcin Kuzminski
ec504c9907
caches: use delete_multi for clearing out cache keys.
...
- This is a safer and more efficient way of purging many keys.
- For file based cache it only opens the DB once
2018-07-13 18:39:52 +02:00
Marcin Kuzminski
f4b8149962
caches: allow debug of max_size reached by the MemoryLRU cache.
2018-07-13 17:29:36 +02:00
Marcin Kuzminski
f652093d5d
http: use better logging with vcsserver context UUID.
2018-07-13 15:33:25 +02:00
Marcin Kuzminski
7d7d6741bb
caches: added logging for dogpile configuration.
2018-07-13 13:06:04 +02:00
Marcin Kuzminski
5d65003058
tests: fixed pull_reques API tests
2018-07-13 10:27:25 +02:00
Marcin Kuzminski
8b898263b9
api: fixed creation of pull request with custom rules of reviewers + proper diff creation.
2018-07-12 18:46:59 +02:00
Marcin Kuzminski
8fb8dd18d0
ui: add arrow navigation for parent/child in changelog view.
...
- allows easier to tell if we browse next/prev commit
2018-07-12 18:37:14 +02:00
Marcin Kuzminski
84d673d387
caches: use dogpile for sql_cache_short region.
2018-07-12 17:20:03 +02:00
Marcin Kuzminski
0e05d6dd64
caches: use a faster LRUDict implementation for LRUMemoryCache
2018-07-12 17:48:12 +02:00
Marcin Kuzminski
d576848d4a
api: creation of pull_request now honor additional reviewers when using reviewer rules.
2018-07-12 14:10:29 +02:00
Marcin Kuzminski
1b0ed3831f
static: updated robots.txt example
2018-07-12 11:36:49 +02:00
Marcin Kuzminski
a19d4b732a
caches: use a gevent compatible file-lock mechanism.
...
- because of gevent we can run into a deadlock situation and worker freeze because of
each of the workers will try to aquire a lock.
- This should help with the issue and gevent.
2018-07-12 10:40:18 +02:00
Marcin Kuzminski
91f5c6e707
review-rules: allow regex syntax for more flexiblity on writing rule patterns
2018-07-11 18:44:35 +02:00
Marcin Kuzminski
30eb0aa985
caches: flush permission caches when editing affected objects so we can reach them right after changes.
2018-07-11 13:27:17 +02:00
Marcin Kuzminski
1e5586a48f
events: UserPermissionsChanged should not flush duplicates
2018-07-11 13:26:45 +02:00
Marcin Kuzminski
fa5d94d619
permissions: flush cache when creating a new fork.
2018-07-11 12:56:18 +02:00
Marcin Kuzminski
239874ceca
api: pull-requests fixed logic of ancestor calculation and target ref calculation based on the web view.
2018-07-11 17:27:30 +02:00
Marcin Kuzminski
f7081008c5
pull-requests: refactor model for code readability.
2018-07-11 12:37:33 +02:00
Marcin Kuzminski
f3d4446814
api: pull-requests allow automatic title generation via API
2018-07-11 13:46:16 +02:00
Marcin Kuzminski
84767c858f
api: fixed ordering of commits in PR creation from API
2018-07-11 10:36:12 +02:00
Marcin Kuzminski
8d6435c5ac
api: fixed recursive permissions changes to repo group.
...
- fixes #5489
2018-07-10 22:39:57 +02:00
Marcin Kuzminski
9812f0cbda
api: fixed recursive permissions changes to repo group.
...
- fixes #5489
2018-07-10 22:39:57 +02:00
Marcin Kuzminski
518773e587
api: fix creation of PR with default reviewer rules.
2018-07-10 18:25:22 +02:00
Marcin Kuzminski
79dce74e8a
api: fix creation of PR with default reviewer rules.
2018-07-10 18:25:22 +02:00
Marcin Kuzminski
8a32949457
caches: flush cache when adding new objects so we can access them right away.
2018-07-10 16:02:21 +02:00
Marcin Kuzminski
0691f71bdd
caches: flush the caches on permission changes for affected users.
2018-07-09 13:56:52 +02:00
Marcin Kuzminski
ad4963f1d3
events: add event to catch permission changed so we can flush affected users permission caches
2018-07-09 13:01:42 +02:00
Marcin Kuzminski
6be51bb03d
cache: turn off caches if expiration_time is 0
2018-07-06 14:47:34 +02:00
Marcin Kuzminski
cc72ded271
caches: skip cache if user is empty.
2018-07-06 14:47:09 +02:00
Marcin Kuzminski
a48ab8a32d
caches: don't use beaker for file caches anymore
2018-07-06 12:55:13 +02:00
Marcin Kuzminski
ddc445856e
caches: rewrite of auth/permission caches to dogpile.
2018-07-05 20:14:33 +02:00
Marcin Kuzminski
c8cd3e9740
caches: use LRUDict inside our lru helper so we can import it later on when required.
2018-07-04 22:26:52 +02:00
Marcin Kuzminski
ed7f791de4
style: use different indicator for nicer UI.
2018-07-05 14:28:22 +02:00
Marcin Kuzminski
564c09e772
ip-restritions: fix issue with loading empty IP rules for non-logged not-anonymous users.
...
This case won't have any IP rules set. And we accidentally loaded them becuase of no empty user filter
was present. This caused some odd display warnings for users.
2018-07-04 12:19:08 +02:00
Marcin Kuzminski
5c59ec640b
db: don't use md5 for cache key calculation. Md5 is now fully deprecated.
2018-07-03 14:35:21 +02:00
Marcin Kuzminski
f62a1b94f7
tests: don't use md5 for testing crypto for compliance reasons.
2018-07-03 14:30:57 +02:00
Marcin Kuzminski
2306cd3189
base: drop usage of md5 for calculation of version hash.
2018-07-03 14:28:50 +02:00
Marcin Kuzminski
edc9dc5771
caches: don't use deprecated md5 for key calculation.
...
- md5 isn't a valiable option for compliance reasons
2018-07-03 14:27:32 +02:00
Marcin Kuzminski
225757aaf3
hooks: made the callback host configurable.
...
- This allows easier docker container seperation
2018-07-03 11:57:03 +02:00