Commit graph

165 commits

Author SHA1 Message Date
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
Marcin Kuzminski
c37bfb464a users: use two distinct actions for user password reset.
- this makes a better UX instead of TOGGLE.
2019-01-14 18:46:18 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Daniel Dourvaris
bd42c53c17 search: add support for elastic search 6
- elasticsearch new query lang and searcher
- much more advanced query lang
- added context aware search in repository groups, repository, commits, files view
- optimized quick search bar speed when using full text search
- added option to increase hits per file number from query URL using max_lines
- search results can be now marked inside a text file using ?mark=HIGHLIGHT_TEXT added to the url
2018-12-19 18:17:51 +01:00
Marcin Kuzminski
79a7719e92 system-info: ensure safe read of base_url in case it's not set. 2018-12-10 17:33:14 +01:00
Marcin Kuzminski
5dc892c339 auth/security: enforce that external users cannot reset their password. 2018-11-29 19:24:15 +01:00
Marcin Kuzminski
fcc18a6200 application: re-organize imports for pyramid to prepare code for speedup optimization. 2018-11-24 17:52:21 +01:00
Marcin Lulek
a39b4baf03 system-info: expose base_url 2018-11-22 14:39:33 +01:00
Marcin Kuzminski
e1bbb01dab ldap: adde common ldap-ce na ldap-ee structure, and extend options
- added timeout
- make the code more shared
- allow specification of tls certdir and certfile manually
2018-11-25 18:47:15 +01:00
Marcin Kuzminski
0cc2c2c07d code: code cleanups, use is None instead of == None. 2018-11-21 18:05:27 +01:00
Marcin Kuzminski
68c06918fd processes: show how many workers we have set from configuration. 2018-10-25 11:48:44 +02:00
Marcin Kuzminski
8d4e2dda3a license: update license metadata and generation code 2018-09-20 21:48:08 +02:00
Marcin Kuzminski
19d4c6901b exc_tracker: allow setting custom store via .ini file
- use safer exc read when listing exceptions.
2018-09-10 22:18:53 +02:00
Marcin Lulek
c1c8c93ea6 exception-tracker: add show-more link. 2018-08-30 12:05:26 +02:00
Marcin Kuzminski
e41725c078 branch permissions: added logic to define in UI branch permissions.
- db models
- new permissions pages placeholders
2018-08-28 13:41:30 +02:00