Commit graph

978 commits

Author SHA1 Message Date
Marcin Kuzminski
ddd8fcad75 packages: updated package details with location info. 2020-05-19 12:24:38 +02:00
Marcin Kuzminski
159aca46c7 request-wrapper: expose usernames for better auditing capabilities. 2020-05-18 14:40:26 +02:00
Marcin Kuzminski
293a3535ae pull-requests: fix way how pull-request calculates common ancestors.
- fixes #5561
- added new preview for size (commits/files) of PRs before opening, this is now based on the special logic that calculates common ancestor and has access to preview diff
- store common ancestor in DB so updates of pull-requests are consistent
2020-05-08 08:43:51 +02:00
Marcin Kuzminski
4b277c70fe git: fixed readme searcher for libgit2 2020-05-14 09:40:41 +02:00
Marcin Kuzminski
0127fbe62e files: fixed unicode problems on image preview, and make images center, no-stretch. 2020-05-14 09:40:20 +02:00
Marcin Kuzminski
0021e33e42 db-migrate: backport some changes for py3 compat. 2020-05-13 21:29:53 +02:00
Marcin Kuzminski
ff2c8fd444 migrations: fixed db migrate for latest sqlite version. 2020-05-13 21:21:02 +02:00
Daniel Dourvaris
6da9683ece svn: fixed problem with special characters inside subdirectories. 2020-05-12 20:38:46 +02:00
Marcin Kuzminski
42302f7434 auth-user: enabled cache flags for fetching ACL ids.
- those are now safe to cache since we have a proper cache invalidation logic for permissions of users
- for lots of repo this makes our goto switcher much much faster
2020-05-05 13:18:55 +02:00
Marcin Kuzminski
ef2b6c8a1c comments: added immutable parameter to forbid editing/deleting certain comments 2020-05-05 11:36:32 +02:00
Marcin Kuzminski
45bffc6b47 diffs: improve logging 2020-04-29 09:59:56 +02:00
Marcin Kuzminski
6e32a23add repositories: preserve order of defined backends, and switched repo type selector to radios. 2020-04-27 09:39:34 +02:00
Daniel Dourvaris
fcd530ecfe pull-requests: add information about changes in source repositories in pull-request show page.
- fixes #5611
2020-04-21 21:50:36 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Daniel Dourvaris
466826a84a hooks: added new hooks for comments on pull requests and commits.
- allows writing custom actions on top of comments
- new rcextension hooks
- organized and renamed some hooks
- new helpers for rcextensions
- fixes #5583
2020-04-15 18:00:59 +02:00
Marcin Kuzminski
70b01ee66f exception_tracker: store request info if available. 2020-04-09 16:15:53 +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
4de6dd537c pull-requests: fixed case for GIT repositories when a merge check failed due to merge conflicts the pull request wrongly reported missing commits.
- we're now searching for dangling commits in a repo that has them and cannot see them because of failed merge checks.
- pull-request: will save metadata during merge simulation so merge conflicts are permanently stored, and showed to all users.
2020-04-08 11:17:10 +02:00
Marcin Kuzminski
49ac57fa47 exc_tracker: disable send-email if mail server is not configured. 2020-04-06 18:23:10 +02:00
Daniel Dourvaris
3fa756fb2c files: fixed the repo switcher at flag beeing nor persistens
- additionally SVN now reports nice switchet refs as other types of vcs
- fixes #5610
- references #5599 (org issue)
2020-04-03 22:54:42 +02:00
Marcin Kuzminski
c2c4e3a09b exc_tracker: also check for smtp_server before doing heavy lifting of exception email sending 2020-04-02 13:59:25 +02:00
Daniel Dourvaris
8d9716b58b files: changed the copy path label to indicate we're actually copying only the path.
- added copy permalink helper to copy the url quickly
- fixes #5602
2020-03-30 11:14:24 +02:00
Marcin Kuzminski
5c1b8deae8 exc-tracker: make context attribute behave like in API case
- simplified how use of api attachment of the attributes is done so we can explicitly pass it.
- for celery we need this else it fails to send emails
2020-03-30 11:08:33 +02:00
Marcin Kuzminski
d0a117b4ad exception-tracker: enable send email on exception 2020-03-26 14:03:07 +01:00
Marcin Kuzminski
6a0c148cae emails: added premailer for inline style formatting to make emails render nicer on all email clients. 2020-03-26 12:40:21 +01:00
Marcin Kuzminski
ab2dd4f364 feedgenerator: fixed missing utc definition. 2020-03-25 15:18:50 +01:00
Marcin Kuzminski
bd9e5dc1c3 api: exposed modified added/modified/deleted functions of commit to return only paths.
This combined with full text search build for certain repositories that each commit
contains lots of file changes results in *huge* (10x in some cases) performance gain.
2020-03-16 15:09:45 +01:00
Marcin Kuzminski
54a47cd524 git: use safe configparser for git submodules to prevent from errors on submodules with % sign.
- This is treated as interpolation sign and can cause errors on regular ConfigParser instance.
2020-02-20 11:28:18 +01:00
Marcin Kuzminski
82dddbb8b2 file-store: use our own logic for setting content-type. This solves a problem
when previously used resolver set different content-type+content-encoding which
is an incorrect behaviour.
2020-02-18 16:05:30 +01:00
Marcin Kuzminski
ceaa1dd337 file-store: don't response with cookies on file-store download. 2020-02-18 16:04:34 +01:00
Marcin Kuzminski
e1a5fb601d mentions: markdown renderer now wraps username in hovercard logic allowing checking the mentioned user.
- ref: #5586
2020-01-27 09:24:08 +01:00
Marcin Kuzminski
8e01135d04 Authentication: cache plugins for auth and their settings in the auth_registry.
- Before that change on each requests 4x we loaded plugins for authentication, this hit
many caches, db invalidation context and loaded the plugins logic each time. This was a heavy performance hit
for SVN and other backends as they needed to load that plugins many many times
- Since Authentication plugins almost never change, we'll not store the plugins listed for authentication into
the authnregistry for each process
- For AuthPlugins settings we now also flush plugins settings, and authnregistry cached plugins
2020-01-23 12:41:51 +01:00
Marcin Kuzminski
ffe9fcc15e flash: fixed display problem with flash messages on error pages. 2020-01-23 12:12:33 +01:00
Marcin Kuzminski
d9380269dd maintainance: run rebuildfncache for Mercurial. 2020-01-21 10:19:29 +01:00
Bartlomiej Wolynczyk
bfb50f3681 helpers: pre-compiled issue tracker patterns early for speedup. 2020-01-20 16:50:17 +01:00
Bartlomiej Wolynczyk
c757aba65f helpers: use pre-comiled patterns for PRs for small speedup. 2020-01-20 16:49:33 +01:00
Bartlomiej Wolynczyk
2b460ba73c issue-tracker: cache active patterns in the template so we can re-use them when rendering comments.
- before each render call fetched settings and patterns to process
- in case of lots of commits/large pull-requests this took a loot of time.
2020-01-20 14:53:23 +01:00
Bartlomiej Wolynczyk
347621778d settings: re-use attached request global config for performance
- since we *always* generate a global config and register it into request
make use of it, and not rely on the get_all_settings heavy logic that makes
it slow to fetch because of cache checks.

Within single request we're fine to re-use it when ever request attribute is available
2020-01-20 13:32:49 +01:00
Marcin Kuzminski
66a5b46e5f audit-logger: use copy of params we later modify to prevent from modification by the store function of parameters that we only use for reading. 2020-01-14 16:15:54 +01:00
Daniel Dourvaris
c599b25174 installation: add few extra defaults that makes RhodeCode nicer out of the box. 2020-01-10 14:32:41 +01:00
Marcin Kuzminski
540f9ad582 core: fixed cython compat inspect that caused some API calls to not work correctly. 2020-01-10 08:54:49 +01:00
Marcin Kuzminski
94d571c2bd cython: fixed problems with cythonized decorators on py2.
- This is just a temporary fix
- We'll remove this once py3 migration is done
2020-01-08 12:25:40 +01:00
Daniel Dourvaris
f942ce2001 automation: updated update task to update repositories and groups.
- Groups will be updated by iteration from the most depth one to the root. This way we ensure proper updated of all multiple nested
- repositories don't need special logic and will be updated only on changes.
2019-12-27 14:14:48 +01:00
Marcin Kuzminski
631a663b62 request-wrapper: ensure we wrap WHOLE request not just logic after http detection. 2019-12-26 19:52:17 +01:00
Marcin Kuzminski
869993afa8 pagination: handle empty sets of data in sqlPaginator for backward compat. 2019-12-26 19:05:36 +01:00
Marcin Kuzminski
97cbe3b81b caches: introduce cache_ver for permissions in order to be able to invalidate caches if cached code changes 2019-12-22 14:18:01 +01:00
Marcin Kuzminski
d62df5e549 auth-user: use new permissions helpers instead of defining the read list over and over. 2019-12-22 11:50:36 +01:00
Marcin Kuzminski
116ffd25d2 my-account: owner/watched repos are now loaded only using DB queries.
- major speed-up for large number of entries
- permissions checks using IN generator
2019-12-19 17:49:40 +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
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