Commit graph

67 commits

Author SHA1 Message Date
ievgenii vdovenko
89d2a6aa05 feature: add an option to the repo settings to disable/enable
strategy selector for a user in a pull request
2025-07-04 12:38:36 +02:00
RhodeCode Admin
e9ad755887 tests: fixed some flaky tests 2025-01-10 10:42:53 +01:00
RhodeCode Admin
107b31a78f core: use consistent import for get_current_request 2024-12-10 07:36:38 +01:00
Serhii Ilin
460e4be5eb added latest changes 2024-11-20 14:12:26 +02:00
RhodeCode Admin
82f0f8d214 core: updated copyright to 2024 2024-11-12 16:39:07 +01:00
RhodeCode Admin
1d5d2c0155 tests: fixed test suite for celery adoption 2024-11-08 16:17:57 +01:00
Serhii Ilin
38d5e39b57 feat(task-for-automatic-pr-merge): added f-ty to support pull request auto merge for EE. Fixes: RCCE-67 2024-10-28 12:35:44 +02:00
Serhii Ilin
0eeee78a52 updated with a latest changes. 2024-10-02 12:22:06 +03:00
RhodeCode Admin
c859407811 feat(vcs): dropped validate SSL for vcs-operations.
- This is very error prone
- With docker we don't need it anymore
2024-10-01 11:28:07 +02:00
Serhii Ilin
5d1b03ab5b feat(git lfs path and path to hg large files in *.ini files): moved git lfs path and path of hg large files to *.ini files. 2024-09-25 10:59:01 +03:00
Serhii Ilin
5f36eb1b22 Updated with a latest changes. 2024-03-11 20:12:31 +02:00
Serhii Ilin
7e2e69d2ba feat(repo_path-config): moved main storage location path into ini file. Fixes: RCCE-61 2024-03-01 09:39:14 +02:00
Serhii Ilin
25f36e9654 feat(svn-config): moved svn related config keys to *.ini file. Fixes: RCCE-60 2024-02-28 09:34:14 +02:00
RhodeCode Admin
45ebc7cca3 fix(mercurial): dropped support for depreacted hgsubversion fixes RCCE-12 2023-12-28 15:09:26 +01:00
RhodeCode Admin
43cd9687ab settings: fixes for 5.0.0 release new license key storage 2023-08-23 13:42:39 +02:00
RhodeCode Admin
8ae0e8de44 caches: make sure the global cache namespace prefixes are used.
- fixes problems when porting from old RC to new python3 based and different serialization mech
2023-07-26 16:15:52 +02:00
RhodeCode Admin
e0ae91f767 html_sanitizer: abstracted bleach into own function/code for later replacement
- fixed bleach related test failures
2023-07-19 10:26:46 +02:00
RhodeCode Admin
4bbb30fa06 modernize: updates for python3 2023-07-18 14:45:20 +02:00
RhodeCode Admin
42301154fc copyrights: updated for 2023 2023-07-18 11:57:27 +02:00
RhodeCode Admin
175640c7d0 models: major update for python3,
- imports fixes
- str vs unicode fixes
- found issues with logic on tests runs
2023-07-18 11:31:01 +02:00
RhodeCode Admin
9c37eeebb1 models: removed utf8 markers 2023-07-18 10:59:21 +02:00
RhodeCode Admin
158f8ca42e settings: optimized improts 2023-03-08 14:55:38 +01:00
RhodeCode Admin
0122133e4e python3: fixed usage of .next() and .func_name 2023-03-07 09:56:40 +01:00
RhodeCode Admin
159c758565 auth-plugins: remove the in-object cache that cauused invalidation failures.
We use now proper dogepile cache which gets purged on settings change.
2023-02-02 09:42:19 +01:00
RhodeCode Admin
1fe7f6f15d settings: fixed some issuetracker settings tests 2023-01-09 16:06:41 +01:00
RhodeCode Admin
f18966f6ea settings: don't use explicitly statsd because it's optional 2023-01-09 11:14:48 +01:00
RhodeCode Admin
119c3c406b caches: remove settings cache to use invalidation context as it's slowing down much usage 2023-01-05 09:51:28 +01:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02: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
Bartlomiej Wolynczyk
bfb50f3681 helpers: pre-compiled issue tracker patterns early for speedup. 2020-01-20 16:50:17 +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
0ae89b9907 files: only check for git_lfs/hg_largefiles if they are enabled.
- this speeds up fetching of files if they are not LF and very big.
2019-08-23 14:37:56 +02:00
Marcin Kuzminski
928652312a core: added more accurate time measurement for called functions 2019-07-17 16:28:41 +02:00
Marcin Kuzminski
d693a556b4 Mercurial: fix ssh-server support for UI objects
- fixed evolve/topic usage
- fixed propagation of publishing and extension flags
2019-04-07 13:39:06 +02:00
Marcin Kuzminski
d621ac19ee mercurial: enabled full evolve+topic extensions 2019-04-19 12:00:01 +02:00
Marcin Kuzminski
0a1ad8cca4 security: fix possible XSS in the issue tracker URL. 2019-01-29 14:55:54 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Marcin Kuzminski
0cc2c2c07d code: code cleanups, use is None instead of == None. 2018-11-21 18:05:27 +01:00
Marcin Kuzminski
9033601562 logging: use lazy parameter evaluation in log calls. 2018-09-13 17:41:35 +02:00
Marcin Kuzminski
0dcf480d6e caches: use process aware settings cache with proper invalidation. 2018-08-02 22:15:16 +02:00
Marcin Kuzminski
f1497f5afd caches: new cache context managers.
- deprecate beaker cache completly
- use new cache decorators from dogpile
- use a proper per cache key invalidation
2018-08-02 18:04:52 +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
84d673d387 caches: use dogpile for sql_cache_short region. 2018-07-12 17:20:03 +02:00
Bartłomiej Wołyńczyk
4637dd151e caching: add option to cache diffs for commits and pull requests.
- new option for vcs settings to enable caching of diffs and commits
- enables auditing of PR after closing it, and removing commits from source repo
- speed up for large PR upto 20x
- reduced memory usage
2018-04-17 18:46:20 +02:00
Marcin Kuzminski
00b45c1fa7 release: update copyright year to 2018 2018-01-19 17:13:16 +01:00
Marcin Kuzminski
9bf25f60d0 issue-tracker: fix prefix to be escaped as well as the url pattern. 2017-12-11 22:10:23 +01:00
Marcin Kuzminski
19486663e6 issue-trackers: bleach.clean the url entry to avoid JS injections. 2017-12-07 13:04:16 +01:00
Marcin Kuzminski
8654078833 settings: fix potential 500 problem on bad data passed in. 2017-11-16 20:34:38 +01:00
Marcin Lulek
e312dff198 repo-settings: ensure deletion on repo settings model validate
the settings id against the initialized model repo.

- prevents from malicious deletions of settings by forgin IDs
2017-10-18 12:16:40 +02:00
Marcin Kuzminski
990994942d pull-requests: use close action with proper --close-commit solution.
- Mercurial settings are no long as LABS
- Unified some code between GIT and HG on rebase/close/delete feature branches
2017-08-24 22:36:34 +02:00