Commit graph

67 commits

Author SHA1 Message Date
Milka Kuzminski
eb5ec20934 application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start. 2020-12-08 17:04:39 +01:00
Marcin Kuzminski
274d09cad8 quick-search-bar: fixes #5634 2020-10-08 18:19:14 +02:00
Marcin Kuzminski
9497841700 main-page: simplify footer, and expose docs link. 2020-06-04 13:51:25 +02:00
Marcin Kuzminski
bf765e0f9e quick-search: added ability to search for pull-requests using pr: prefix.
- permissions are checked against the access to target repositories
2020-05-05 13:24:19 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Daniel Dourvaris
f3d86f6a00 ux: change file search to file content search which makes a better description of what we search for. 2020-01-20 20:07:25 +01:00
Marcin Kuzminski
f3ee9bebe7 goto-switcher: reduce query data to only required attributes for speedups. 2019-12-19 16:49:34 +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
7206dd2657 dashboard: main page grids async load.
- in some cases when super-admins or all repos in root loading main
page could take minutes because we loaded whole dataset.
- this change make the loading limited to first page of data.
  Rest is loaded via DB pagination
- In many cases this is major speed-up for showing 1st page fast.
2019-12-19 12:46:03 +01:00
Marcin Kuzminski
77ace245eb ui: use more distinctive icons for search hints 2019-11-25 11:18:47 +01:00
Daniel Dourvaris
4057ada739 webhelpers: port most of the items from webhelpers to webhelpers2
- webhelpers are deprecated and py2 only
2019-11-21 15:48:12 +01:00
Marcin Kuzminski
db66dae0fa tooltips: small fixes/tests fixes. 2019-11-04 10:53:09 +01:00
Marcin Kuzminski
8a683cb244 js: fixed usage of minimized JS 2019-10-31 15:13:08 +01:00
Marcin Kuzminski
dba51863a2 ui: added action link that repliaces current mix of actions in options and action buttons
- this was part of new UI that we didn't ship in 4.17
- makes whole UX more consistent and has a single creation path for many different objects
- this is ready for more actions in future
- context actions change if we're in repo group or repo
- new users has creation option available if their personal repository group exist.
2019-08-27 21:44:22 +02:00
Daniel Dourvaris
cb27615ddc file: new file editors
- multi-upload
- styling as per new UI
2019-06-24 16:59:00 +02:00
Marcin Lulek
562df51a6a quick-filter: added nicer UI and hints. 2019-06-14 22:02:15 +02:00
Marcin Kuzminski
ee06461a89 changelog: rename changelog to commits pages 2019-06-06 13:02:10 +02:00
Marcin Kuzminski
565bfc3141 commit-cache: update repo group/repo every 5 min 2019-05-27 12:08:17 +02:00
Marcin Kuzminski
11d4863052 feat: changed last change of repo group to be commit of a latest repository. 2019-05-21 11:47:13 +02:00
Marcin Kuzminski
ef9b0f8cd8 diffs: store wide-diff mode in user sessions for saved state. 2019-04-23 11:26:12 +02:00
Marcin Kuzminski
6039839d53 go-to search: updated logic of goto switcher
- when in repo group searcher are ordered by the entries in the group
- support prefixes with spaces, eg file: PATTERN
- new contextual search for groups/repos with mark token
- better suggestions
2019-03-13 12:12:01 +01:00
Daniel Dourvaris
30ab5584db search: allow quick search for path globally 2019-03-06 17:49:26 +01:00
Daniel Dourvaris
ed7e61efb5 quick-search: improve styling of search input and results. 2019-01-31 13:13:55 +01:00
Daniel Dourvaris
4eccdc24d9 search: new UI for search, and repo group context search
- expose search into main NAV
- have repo group search filter using new ES lang
- show token keys and curretn context when searching
- ui updated and consistency fixes
2019-01-30 21:20:26 +01:00
Daniel Dourvaris
427c87316b search: add option to search within a repository group. 2019-01-30 13:15:46 +01:00
Daniel Dourvaris
796c235358 ui: introduce user-bookmarks for creation of quick shortcuts 2019-01-22 01:18:40 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Daniel Dourvaris
664a1803b7 quick-search-bar: show errors when search fails. 2018-12-19 18:18:20 +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 Lulek
69b8d6a77f frontend: use webpack instead of vulcanize 2018-10-30 15:24:35 +01:00
Marcin Kuzminski
89625207b0 tests: fixed tests after JS rebuild. 2018-10-25 13:24:45 +02:00
Marcin Kuzminski
2910f510dc repositories: added option to archive repositories instead of deleting them.
- closes #5493
2018-09-25 17:28:11 +02:00
Marcin Kuzminski
4c45a5dbea users: use new session store for temporary settings for users.
- use for clone url type selection
- use for diffs mode
2018-09-24 23:18:38 +02:00
Marcin Kuzminski
65e339e9fd core: handle edge case requesting matched routes but with hg/svn/git or api context.
- before we error out with 500
2018-09-20 11:47:03 +02:00
Marcin Kuzminski
bafbc2b040 pull-requests: allow markup rendered description. 2018-06-25 12:01:35 +02:00
Marcin Kuzminski
7ed0451f13 quick-search: use smart group search when browsing inside a repository group.
- This replaces last part of now disabled quick filter.
2018-06-18 15:52:20 +02:00
Marcin Kuzminski
bfbb9e33a4 quick-serach: added option to also search user-groups. 2018-06-15 13:57:03 +02:00
Marcin Kuzminski
61af3befa8 repo-switcher: fix unicode problem 2018-06-12 15:12:06 +02:00
Marcin Kuzminski
5a9eef68a6 search-bar: forbid anonymous users to search 2018-05-30 15:18:34 +02:00
Marcin Kuzminski
7c46071c51 repo-switcher: new unified search box for filtering/accessing users, repos and repo groups.
- mainly driven by customer feedback
- two filter boxes on main page was confusing, and people constantly asked if grid filter can search recursive
- now we use one unified search on main nave accessible on every page
- it now also can search for users
2018-05-30 12:54:50 +02:00
Marcin Kuzminski
00b45c1fa7 release: update copyright year to 2018 2018-01-19 17:13:16 +01:00
Marcin Kuzminski
5f9ae2ae11 pylons: remove pylons as dependency
- dependencies: bumped:
 -setuptools-scm==1.15.6
 -celery==4.1.0
 -kombu==4.1.0
 -pytz==2017.3
 -Routes==2.4.1

Removed all pylons components. Refactored the code to use only pyramid
parts
2017-11-15 13:42:54 +01:00
Marcin Kuzminski
4336119cb0 views: load template context for XHR views.
- We use partial renderer and this requires the call_context to be initialized.
- Helps the Pyramid porting to be finished
2017-11-07 14:15:24 +01:00
Marcin Kuzminski
686c51c8d7 quick-filter: make sure we always apply IN filter query. Otherwise we can
end up iwth empty query which disables the ACL filter.
2017-10-12 21:37:23 +02:00
Marcin Kuzminski
79c8fadc26 repo-data: fixed missing parameter we used to propagate JS with.
- was breaking the repo selectors
2017-09-21 19:46:27 +02:00
Marcin Kuzminski
87a5eb4bde apps: cleanup imports 2017-09-08 12:56:47 +02:00
Marcin Kuzminski
aca661a15e goto-switcher: optimized performance and query capabilities.
- Previous implementation had on significant bug. The use of LIMIT 20
was limiting results BEFORE auth checks. In case of large ammount of similarly
named repositories user didn't had access too, the result goto search was empty.

This was becuase first 20 items fetched didn't pass permission checks and final
auth list was empty.

To fix this we now use proper filtering for auth using SQL. It means we first check
user allowed repositories, and add this as a filter so end result from database is already
to only the accessible repositories.
2017-08-16 22:46:34 +02:00
Marcin Kuzminski
e8ec2b950f goto-switcher: use special commit: prefix to explicitly search for commits.
- previous solution could make the go-to swticher slow in case of huge search index
- mixing repository names and commit names could lead to bad UX when searching
- explicit case still allows this, but user is in the control how and what he wants to search
- fixes #5375
2017-08-15 21:33:01 +02:00
Marcin Kuzminski
c56bb0da4b core: removed usage of global pylons config in base lib. 2017-08-03 21:59:49 +02:00