Commit graph

855 commits

Author SHA1 Message Date
RhodeCode Admin
d915b8e9dc models: new sqlalchemy logic and encryption setup for python3 2023-07-18 11:29:44 +02:00
RhodeCode Admin
1c4ab515f7 validators/schemas: python3 fixes str vs unicode and few test breaking fixes 2023-07-18 11:18:37 +02:00
RhodeCode Admin
9c37eeebb1 models: removed utf8 markers 2023-07-18 10:59:21 +02:00
RhodeCode Admin
087ed92f1e form-validators: fixed usage of deprecated methods, and few py3 fixes 2023-05-11 12:08:21 +02:00
RhodeCode Admin
d5b64dd610 db-models: use consistent __str__ for all models, removed safe_unicode calls 2023-03-28 10:50:10 +02:00
RhodeCode Admin
061c3d3f5e caches: cleanup code
- emails from cache should skip default user as that user does not have extra emails
2023-03-28 10:33:16 +02:00
RhodeCode Admin
745c3af99f caches: use new sqlalchemy 1.4 caching query approach 2023-03-28 10:20:08 +02:00
RhodeCode Admin
70326fd4cb encryption: unified and rewrote encryption modules to be consistent no matter what algo is used.
- few python3 fixes as well
2023-03-27 21:44:36 +02:00
RhodeCode Admin
34af9cfa2f python3: fixed various code issues
- iterators
- use of u''
2023-03-20 20:51:25 +01:00
RhodeCode Admin
a7204b51b4 python3: small fixes for .items() usage 2023-03-10 11:43:45 +01:00
RhodeCode Admin
604e2a83fa FOLD: into unicode changes 2023-03-10 10:09:29 +01:00
RhodeCode Admin
c3da01c179 ssh-wrapper: perf optimizations
- make key timestamp update pure sql so we don't generate model import overhead
- code cleanups
2023-03-08 14:57:45 +01: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
94a50edf39 python3: fix usage of int/long 2023-03-07 09:54:36 +01:00
RhodeCode Admin
80911c5892 python3: more 2to3 fixes 2023-03-06 23:49:19 +01:00
RhodeCode Admin
44cde4b5c1 python3: removed usage of .iteritems() 2023-03-06 23:46:33 +01:00
RhodeCode Admin
92fe8c512d python3: removed compat modules 2023-03-06 23:36:17 +01:00
RhodeCode Admin
f7091556fd python3: fixed urlparse import 2023-03-06 23:02:03 +01:00
RhodeCode Admin
c03eb06e26 requirements: fixed pycrypto backport and sqlalchemy <2.0 2023-03-06 23:01:05 +01:00
RhodeCode Admin
44486852d1 python3: fix use of basetring 2023-03-06 22:23:16 +01:00
RhodeCode Admin
c22758550a python3: fix urllib usage 2023-03-06 22:00:27 +01:00
RhodeCode Admin
5392dc6c9c python3: models removed usage of orderdefaultdict
- not compatible with py3, and not really used
2023-03-06 21:52:29 +01:00
RhodeCode Admin
dbf975898e py3: remove use of pyramid.compat 2023-03-06 15:52:51 +01:00
RhodeCode Admin
8f6692847b python3: removed use of xrang 2023-03-06 14:57:53 +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
2d75c988c1 testing: added webhook tests and fixed tags adding 2023-02-01 12:06:16 +01:00
RhodeCode Admin
137f5001fb celery: update how reqquest object is passed arround.
- fixed hooks callback to actually use web based request passed to thread
- rely on celery conf mechanism to pass in the request always in the same manner
2023-01-31 23:33:33 +01:00
RhodeCode Admin
c691bf8c9a statsd/audit-logs: cleanup push/pull user agent code.
- add normalization
- add user-agent tag into statsd call so we can track protocol/vcs type usage
- internal merge also sends in repo type
2023-01-21 14:38:37 +01:00
RhodeCode Admin
59792e6457 premailer: replace logger instead of altering handlers.
Initial logger posted to stderr poluting output and tests
2023-01-21 14:34:46 +01:00
RhodeCode Admin
d300144665 repos: cleannup and fix landing-ref code.
with latest git update this exposed a bug when we allowed to set references like tip for git repos
now the defaults are loaded from a single place controlled by default branch for git.

Repos without master are now working just fine with new git and new logic.
2023-01-18 22:10:40 +01:00
RhodeCode Admin
28af9bcecf translations: moved methods from new request subscriber to actual methods of custom class.
- this enabled it to work with celery exceptions without any problems
- celery has no new request scope so those were undefined in celery
2023-01-12 15:57:46 +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
RhodeCode Admin
2672be414c db: added index to cache_args column for feaster lookup on cache invalidation 2023-01-05 09:46:07 +01:00
RhodeCode Admin
bfaa4b9416 pull-requests: Add possibility to include pull request description into merge commit message 2022-11-04 12:03:49 +01:00
RhodeCode Admin
093cf251d5 caches: make sure we init caches on repo names withou '/' to not create a new cache subpath 2022-09-01 22:00:13 +02:00
RhodeCode Admin
e5a4524403 url-validator: make it more explicit credentials could be a case for repo import validator to fail 2022-09-01 21:59:29 +02:00
RhodeCode Admin
57eecdce7f vcs-settings: when setting landing ref from UI switch default GIT branch too.
fixes #5663
2022-08-11 09:39:06 +02:00
RhodeCode Admin
f1f1c99cae repos: recover properly from bad extraction of repo_id from URL and DB calls. 2021-07-26 13:36:42 +02:00
RhodeCode Admin
3ce837d046 caches: introduce invalidation as a safer ways to expire keys, deleting them are more problematic. 2021-07-23 11:09:12 +02:00
RhodeCode Admin
952b2b0cdc pull-requests: fix potential crash on providing a wrong order-by type column. 2021-07-19 11:53:32 +02:00
RhodeCode Admin
0d36e58be5 pull-requests: optimize db transaction logic.
- we've been investigating this issue with locked pull-requests
- the transactions arround audit-logs and state-lock seems to be fragile for long-running, and exception prone setups
- this change tries to make use of few snapshot transactions to prevent a long ones, and actually try to recover on failed audit-log calls.
2021-07-15 15:05:16 +02:00
RhodeCode Admin
1eb249254a validators: apply username validator to prevent bad values beeing searched in DB, and potential XSS payload sent via validators. 2021-07-15 10:29:38 +02:00
RhodeCode Admin
56421dc214 pull-requests: added retry mechanism for updating pull requests. 2021-05-24 23:46:36 +02:00
RhodeCode Admin
aded27dc31 pull-requests: added awaiting my review filter for users pull-requests.
- additionally the awaiting my review now properly filters pull requests that have no review votes on them
2021-04-20 12:59:31 +02:00
Milka Kuzminski
97d1082f4d users: make user data loading more resilient to errors. 2021-04-14 08:38:10 +02:00
Milka Kuzminski
219a05baa4 permissions: use constant for fork enable/disable 2021-03-24 16:52:47 +01:00
Milka Kuzminski
ae9f4779d2 permissions: flush permissions on owner changes for repo and repo groups. 2021-03-24 14:54:26 +01:00