Commit graph

179 commits

Author SHA1 Message Date
Marcin Kuzminski
50d91914f5 emails: set References header for threading in mail user agents even with different subjects
- drop template headers() function as it wasn't used, and actually had bad implementation
2020-07-15 21:37:03 +02:00
Marcin Kuzminski
4fac5279f8 permissions: flush all when running remap and rescan. 2020-07-06 11:36:55 +02:00
Marcin Kuzminski
1b07afc2cd create: fixed case for repo groups that didn't pre-fill the repo group from GET param.
- also added similar to repo selector for personal repo group.
2020-07-02 21:43:41 +02:00
Daniel Dourvaris
03f066ce9a users: added option to detach pull requests for users which we delete.
- as bonus added ability to specify new owner via ?detach_user_id=NUM GET param.
2020-05-20 12:33:43 +02:00
Marcin Kuzminski
98ce0d9f7a svn: expose file path for generated config. 2020-05-12 17:04:02 +02:00
Marcin Kuzminski
d4eb900e5e app: use simpler way to extract default_user_id, this will be now registered at server
boot.
2020-05-07 15:28:20 +02:00
Marcin Kuzminski
9f456e36ba tests: fixed repo tests after changes for repo type selector. 2020-05-05 14:44:32 +02:00
Marcin Kuzminski
4ac845a76d users: added more secure way for fetching authentication tokens.
- we don't expose ALL on single page
- request needs a validation before viewing of each token
- will later add 2nd layer of auth.
2020-04-20 15:59:06 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Marcin Lulek
780ec5f73e core: added user-notice logic to push notice messages.
- will be used for exception tracker info
- new version upgrades
- dedicated important messages to the users
2020-04-09 12:30:13 +02:00
Marcin Kuzminski
3b5d294eac ssh-keys: allow generation of legacy keys for older systems and windows. 2020-02-20 11:13:10 +01:00
Marcin Kuzminski
50f79f63c2 emails: fixed bug in test email sending.
- AuthUser instance was wrongly used for user who sent the email which we don't support
2020-01-22 10:47:57 +01:00
Marcin Kuzminski
ef0dad2905 grids: fixed tests and added one for permissions to repository group. 2019-12-20 18:27:24 +01:00
Marcin Kuzminski
7260aed821 grids: columns and sorting fixes 2019-12-19 15:27:28 +01:00
Marcin Kuzminski
90db409b65 admin: made all grids use same partial loading logic
- dont load all results for repositories in admin
- speed up loading admin repos page by narrowing results based on permissions
- some small speed ups and code optimizations on permission loading
2019-12-19 11:42:25 +01:00
Marcin Kuzminski
03b4b5ba7b pull-requests: added update pull-requests email+notifications
- fixed generated update message comments + invalid anchor linkes generated to the changed files
- unified headers on all email messages for pull requests
2019-12-04 20:58:23 +01:00
Daniel Dourvaris
8bfbe9e1dc issue-tracker: moved example to the input box
- removed docs which had bad examples
- improved regex for matching newline character properly
- added nicer formatting in examples
2019-12-02 15:12:39 +01:00
Daniel Dourvaris
dbac62326d webhelpers: replaced paginate library with custom lib 2019-11-21 20:37:17 +01:00
Marcin Kuzminski
1addb7b6e2 security: fixed issues with exposing repository names using global PR redirection link
logic.

- Since redirect was created to repository which linked to the PR, users who
didn't have permissions to those repos could still see the name in the url generated.
2019-11-07 13:21:42 +01:00
Daniel Dourvaris
ad7ff3bf73 patterns: enabled global !NUM match for new style pull-request references. 2019-11-06 13:56:26 +01:00
Marcin Kuzminski
9b9e7d2a5a users: description edit fixes
- tests
- added metatags info
2019-10-31 11:22:32 +01:00
Marcin Kuzminski
8b8d8ab401 artifacts: handle detach/delete of artifacts for users who own them and are to be deleted.
- added relationships that cleanup properly
- cleanup code for detach/delete on users
2019-10-24 17:05:07 +02:00
Marcin Kuzminski
ba9f6d58e3 admin: fixed problems with generating last change in admin panels.
- from now on also updated_on will refer as last commit change instead of last update of DB.
Reason for that is since we have audit logs the last db update should be taken from there along the change info.
Storing last commit date in the dedicated field makes it searchable, sortable and faster to read.
2019-10-19 13:31:19 +02:00
Daniel Dourvaris
53980d49a6 authentication: allow super-admins to change bound authentication for users.
- we had many requests from admins on doing so, after connecting LDAP/Saml
- since admins actually started doing this via DB it's no longer a point we shouldn't enable it via UI
2019-10-10 14:08:11 +02:00
Marcin Kuzminski
3876870e28 tests: stabilize tests for mysql/postgres. 2019-10-08 17:06:35 +02:00
Marcin Lulek
f70f60713e audit-logs: expose download user audit logs as JSON file.
Primarly in larger organizations often this needs to be performed for some
employees. Before we delegated users to API or DB fetch.
2019-10-03 13:32:59 +02:00
Marcin Kuzminski
a17adaa9f2 db: use more consistent sorting using real objects, strings are deprecated in laters sqlalchemy query syntax. 2019-09-30 13:24:56 +02:00
Marcin Kuzminski
1d9452ce80 pytest: use consistent way of creating a fixture by using pytest.fixture() 2019-09-28 23:04:18 +02:00
Daniel Dourvaris
2f19673dc4 system-info: expose data about vcsserver. 2019-09-26 11:20:03 +02:00
Marcin Kuzminski
745a1f1278 processes: reduce measure interval to 0.1 to make the processes page load a bit faster (else blocking a lot) 2019-09-03 14:06:41 +02:00
Marcin Kuzminski
569321aa23 processes: use 200ms CPU measure time to get actual results, previous implementation showed 0 most of the time. 2019-09-02 11:15:33 +02:00
Marcin Kuzminski
0cbb6b652a permissions: properly flush user cache permissions in more cases of permission changes.
- fixed #5560
2019-08-20 10:48:36 +02:00
Marcin Kuzminski
981307fc4f landing-rev: fixes #4102, use branches instead of landing tip refs by default.
- also changed how readme is rendered based on landing commit to minimize locking for often changing repositories.
2019-08-16 09:55:36 +02:00
Marcin Kuzminski
f7627b4904 settings: reduce number of settings fetch since it uses locking for cache invalidation and is generally slow.
We anyway load it per-request so we can re-use this.
2019-07-18 00:02:51 +02:00
Marcin Kuzminski
65f5964cf6 merged default into new-ui 2019-05-15 12:24:27 +02:00
Marcin Kuzminski
1df2ca521c exc_store: add filter for display and deletion. 2019-05-08 14:48:00 +02:00
Marcin Kuzminski
a7bf317765 merge default into new-ui 2019-05-08 09:50:12 +02:00
Marcin Kuzminski
ee405633ea users: personal repo group template also can use first/last names for an user 2019-05-06 10:20:31 +02:00
Marcin Kuzminski
442096cbde merge: merged default changes into new-ui 2019-04-19 13:21:58 +02:00
Marcin Kuzminski
5c2d3ac5aa user-groups: fixed in_ filters for large ammount of data. 2019-04-03 23:15:23 +02:00
Marcin Kuzminski
5ac3be4f4e repository-groups: use lazy loaded admin dashboard 2019-04-03 23:15:02 +02:00
Marcin Kuzminski
2b19502b22 tests: fixed broken tests after UI chages 2019-04-01 21:04:06 +02:00
Marcin Kuzminski
0a8e792efc auth: reduced usage of raw auth calls inside templates 2019-03-27 12:29:31 +01:00
Marcin Kuzminski
26ac57ecbc admin: added basic admin page 2019-03-22 22:19:05 +01:00
Daniel Dourvaris
2ff4542cd5 ui: fixed branding look&feel as per discussions. 2019-03-06 22:30:13 +01:00
Marcin Kuzminski
4cfd4ac542 tests: fixed SSH Key tests 2019-02-27 17:03:05 +01:00
Marcin Kuzminski
bf2f76fa87 processes: shorten the message and remove exit code which isn't shown properly anyway. 2019-02-22 02:13:53 +01:00
Marcin Kuzminski
a005be6f2f permissions: flush permissions correctly for forks/repos when celery is used. 2019-01-15 21:04:30 +01:00
Marcin Kuzminski
767c0da28a permissions: flush default user permissions on global app permission changes. 2019-01-14 22:16:57 +01:00
Marcin Kuzminski
3268256a7a permissions: handle more cases for invalidating permission caches
- invalidate user permissions on chaning the global permissions
- invalidate all users in case of creating new object with "copy permissions" flag
- invalidate all users permissions in case of repo/repo group renames
- invalidate all user permissions in forked repo with copy flag
2019-01-14 20:19:25 +01:00