Commit graph

853 commits

Author SHA1 Message Date
Marcin Lulek
9a3fa67ca9 cache-key: make cleanup safe so we don't cause any errors on exit in case it fails.. 2019-08-23 11:05:55 +02:00
Marcin Kuzminski
16f3b5992a cache-keys: register and self cleanup cache keys used for invalidation to prevent leaking lot of them into DB on worker recycle 2019-08-20 21:18:12 +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
22c6ba9851 logging: reduce info logs 2019-07-30 05:02:43 +02:00
Marcin Kuzminski
c1b5317c1e request-wrapper: add request counters 2019-07-29 14:43:00 +02:00
Marcin Kuzminski
fc1ae1d057 gists: fixed cache problems and updated ui 2019-07-24 11:29:06 +02:00
Marcin Kuzminski
0cb728cb99 cache: updated cache decorators based on latest code from dogpile 2019-07-23 12:30:39 +02:00
Marcin Kuzminski
5b07354763 git: replaced some raw subprocess commands with dedicated GIT vcsserver commands. 2019-07-19 13:16:44 +02:00
Marcin Kuzminski
3167ea3c86 caches: newly generated cache object should have always unique UIDs to prevent
situation when after restart of services we get back to initial cache keys.
2019-07-18 21:12:48 +02:00
Marcin Kuzminski
8091a48859 vcs-http: set user-agent 2019-07-18 18:12:41 +02:00
Marcin Kuzminski
924578c2db mercurial: use hash as vcsserver parameters instead of ints which can change even on a server side when a strip is performed. 2019-07-18 17:19:14 +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
7afe163e23 diffs: switched bz2 into gzip since it can be 10x faster in some cases with only slight size penalty 2019-07-17 23:37:51 +02:00
Marcin Kuzminski
928652312a core: added more accurate time measurement for called functions 2019-07-17 16:28:41 +02:00
Marcin Kuzminski
a356085774 caches: synced cache logic with vcsserver. 2019-07-17 14:34:03 +02:00
Marcin Kuzminski
cab16efa4e vcs: optimized pre-load attributes for better caching. 2019-07-17 13:50:26 +02:00
Marcin Kuzminski
0b076e1f65 caches: updated cache backend to new vcsserver caches implementation. 2019-07-17 00:14:26 +02:00
Marcin Kuzminski
b018a07f93 db-migration: we run cleanup of cache keys AFTER upgrade.
- this allows actually migrating CacheKeys
- this step is optional, and it it fails it's not the end of the world, we
  still would run migration anyway.
2019-07-16 13:12:38 +02:00
Marcin Kuzminski
37991ffd4e rcextensions: improved messaging on rcextensions load fail 2019-07-16 11:42:56 +02:00
Marcin Kuzminski
a76fa8d3cd release: merge back stable branch into default 2019-07-12 19:48:03 +02:00
Marcin Kuzminski
ccfa86d740 git: adjusted code for new libgit2 backend
- made @CachedProperty use a custom decarator that can do invalidations. This
 is required for tests
- made few cleanups of code since we use a simpler libgit2 backend now
- removed some unused obsolete code
2019-07-12 17:39:32 +02:00
Marcin Kuzminski
94390f644f logging: fixed some log calls. 2019-07-11 20:23:24 +02:00
Marcin Kuzminski
519020c776 dffs-cache: allow plain mode without bz2 for even better performance but more disk space. 2019-07-11 12:48:21 +02:00
Marcin Kuzminski
5bae51102f logging: http logging should limit the data to some sane ammount.
Despite debug logs aren't production use, we can have situation that this could potentially
print GBs of data from commands like file upload. Having some sane limit here is better.
2019-07-10 23:40:55 +02:00
Marcin Kuzminski
09c4f32da3 diffs: added load time for diffs 2019-07-09 22:47:56 +02:00
Marcin Kuzminski
1acd59be77 database: fix migration for mysql.
- It's really nice that mysql fails on that dependening on version, and our CI doesn't catch that.
2019-07-03 23:08:33 +02:00
Marcin Kuzminski
1396e5c09f styling: use sandboxed style for ipython so it doesn't affect style of application anymore. 2019-07-03 14:40:18 +02:00
Daniel Dourvaris
6793d652e0 git-lfs: fixed bug #5399 git-lfs application failed to generate HTTPS urls properly. 2019-07-02 15:08:39 +02:00
Marcin Kuzminski
0f7b21778d tests: fixed compare page and related tests.
- wrong display of range
- still unfixed problem with initial compare for GIT
- makes the result more consistent now with better display for new UI.
2019-07-01 10:42:55 +02:00
Marcin Kuzminski
929deba1dd tests: fixing tests for pull-requests and changelog(commits) 2019-06-28 14:24:57 +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 Kuzminski
db1689a48c sessions: don't touch session for API calls. 2019-06-14 13:05:04 +02:00
Marcin Kuzminski
89d320077e session: moved pyramid_beaker internally to apply some patches required for better session handling 2019-06-14 12:43:09 +02:00
Marcin Kuzminski
7d97198330 files: fixed rendering of readme files under non-ascii paths. 2019-06-14 11:42:05 +02:00
Marcin Kuzminski
8501ae81be search: fixed UI of search items after redesign. 2019-06-12 21:27:38 +02:00
Marcin Kuzminski
634590913e commits: updated logic of in-memory-commits, fixed tests and re-architectured a bit how commit_ids are calculated and updated.
- it's all part of recent updates on performance, and new commit pages
2019-06-11 12:59:37 +02:00
Marcin Kuzminski
ee06461a89 changelog: rename changelog to commits pages 2019-06-06 13:02:10 +02:00
Daniel Dourvaris
88f9c583e0 files: fixed breadcrumbs tests and escape of copy path 2019-06-10 13:02:08 +02:00
Marcin Kuzminski
6a2e2f0b94 commits: re-implemented fetching a single commit for git case.
- faster using always cache if available
- fixed problems after changes of __bool__ of repo object which always rebuilt cache and this is not the case now
- make few error messages better
2019-06-10 12:28:47 +02:00
Marcin Kuzminski
30534413be archival: allowed using .tbz2 and .tgz extensions. 2019-06-06 21:05:45 +02:00
Marcin Kuzminski
be45ea4459 files: ensure we generate archives with consistent hashing (except for .tar.gz which uses temp files names in header) 2019-06-06 13:36:14 +02:00
Marcin Kuzminski
f34ad147a1 files: rollback metadata to previous version.
- This change generates different hashes for archives, and breaks backward compat.
2019-06-06 12:10:35 +02:00
Marcin Kuzminski
39e6f817c7 repositories: use remote function to check if repo is empty
- changed 2 cases where we want to check for None instead of __bool__ of repo object
2019-06-05 13:30:26 +02:00
Marcin Kuzminski
ab8162dcb1 files: fixed case of partial url in generating files metadata 2019-06-03 10:47:37 +02:00
Marcin Kuzminski
6e5c2a96a2 files: allow partial tree downloads 2019-05-30 14:46:07 +02:00
Marcin Kuzminski
9a47088b4a files: updated based on new design 2019-05-29 18:24:51 +02:00
Marcin Kuzminski
565bfc3141 commit-cache: update repo group/repo every 5 min 2019-05-27 12:08:17 +02:00
Marcin Kuzminski
ab5d354f1b files: made file filter an active input instead of a button. 2019-05-22 12:46:46 +02:00
Marcin Kuzminski
434efcd94f helpers: do not include microseconds in parsing 2019-05-21 13:29:00 +02:00
Marcin Kuzminski
5549543ed3 helpers: use lower format to parse dates 2019-05-21 13:11:54 +02:00