Commit graph

2191 commits

Author SHA1 Message Date
Marcin Kuzminski
b3db08cd09 exceptions-store: show number of exceptions. 2018-07-24 15:13:55 +02:00
Marcin Kuzminski
e9e73ec871 caches: use safest possible pickle for cache backends.
- If this crashes we end up in fatal non-recoverable state.
2018-07-23 15:26:36 +02:00
Marcin Kuzminski
b51d537e66 exceptions: don't log error the lookup method errors. This happens so often we spam
the logs with errors , while it's simply commit not found. Other backends don't report this anyway exception HG.
2018-07-23 14:50:15 +02:00
Marcin Kuzminski
21c608be71 exceptions: added new exception tracking capability.
- store exceptions
- expose super admin interface to browse latest errors
2018-07-23 15:56:09 +02:00
Marcin Kuzminski
77524db5af validation: remove unused raised statement 2018-07-19 12:46:53 +02:00
Marcin Kuzminski
bcde413a64 social-auth: add more explicit message about binding accounts on registation page. 2018-07-18 03:05:53 +02:00
Marcin Kuzminski
f74691150a api: allow updates and setting description renderer for pull requests via the API. 2018-07-17 13:30:50 +02:00
Marcin Kuzminski
099f68a724 pull-requests: make the renderer stored and saved for each pull requests.
- gives backward compatability with previous versions which didn't set renderer
- allows versioning of renderer changes
2018-07-17 14:45:29 +02:00
Marcin Kuzminski
b1effdfded web-build: updated webcomponents to latest version. 2018-07-17 13:08:27 +02:00
Marcin Kuzminski
e837d13757 db-migration: added a helper to manage versions. 2018-07-17 12:38:42 +02:00
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