Commit graph

288 commits

Author SHA1 Message Date
Marcin Kuzminski
3d3f2db34a core: removed pyro4 from Enterprise code. Fixes #5198 2017-02-07 15:58:49 +01:00
Marcin Kuzminski
18f667c234 mailer: don't use a mutable default argument 2017-02-07 16:07:05 +01:00
Marcin Kuzminski
b8e42f991d system-info: added usage info. 2017-02-02 23:10:37 +01:00
Marcin Kuzminski
608e51e4cb changelog: added dynamic loaders to extend number of commits inside changelog.
- implements #5187
2017-01-31 22:05:36 +01:00
Marcin Kuzminski
e7511ca6f6 pr-versioning: implemented versioning for pull requests.
- users can navigate via each version or generate diffs between versions
- diff between versions will show changed commits and partial diffs
- redone the UI for versioning a bit
- small UI fixes
2017-01-25 19:06:59 +01:00
Marcin Kuzminski
ad2b740b5b user-sessions: added an API call to cleanup sessions. 2017-01-30 11:17:42 +01:00
Marcin Kuzminski
0531c78094 user-sessions: add count and cleanup of file-based sessions. 2017-01-28 19:24:23 +01:00
Marcin Kuzminski
a06ed60656 vcs-core: add a shadow-repo extractor for pull-requests, and git objects. 2017-01-23 22:53:53 +01:00
Marcin Kuzminski
0cc8db7a02 diffs: switched lexer extraction to use single function in all places. 2017-01-25 13:52:47 +01:00
Marcin Kuzminski
67dfb2f772 vcs: refactor get_lexer for nodes so it can be used in external code. 2017-01-25 16:09:47 +01:00
Marcin Kuzminski
c1855fb60c diffs: optimize how lexer is fetche for rich highlight mode.
- speeds up initial diff creation significantly since lexer cache
is re used and we don't need to fetch lexer many times.
2017-01-25 16:39:02 +01:00
Marcin Kuzminski
07a595c030 vcs: added possibility to pre-load attributes for FileNodes. 2017-01-25 12:45:05 +01:00
Marcin Kuzminski
ec795357b7 markup-renderer: use global Markdown object to speed up markdown rendering. 2017-01-24 17:19:13 +01:00
Marcin Kuzminski
445b39ac30 helpers: fix tzinfo can be undefined if wrong object is passed. 2017-01-24 17:18:46 +01:00
Marcin Kuzminski
c50ec095c3 hg,git: change method of extracting last_change to use actualy date object
instead of re-parsing it again.
2017-01-24 15:26:14 +01:00
Marcin Kuzminski
3ef31a1cc1 svn: date-parser should use UTC dates to be consistent with other backends. 2017-01-24 11:26:15 +01:00
Marcin Kuzminski
246f2093bd celery: handle pyramid/pylons context better when running async tasks. 2017-01-18 23:13:27 +01:00
Marcin Kuzminski
24ef7171f8 comments: add comments type into comments. 2017-01-11 14:46:29 +01:00
Marcin Kuzminski
d053979d83 utils: switched age function to use lazy translated pyramid translation mechanism. 2017-01-13 12:25:44 +01:00
Marcin Kuzminski
30fe983ff5 logging: added additional log info to vcs detection util. 2017-01-13 11:28:17 +01:00
Marcin Kuzminski
4c2c087cf8 core: let pyramid handle tracebacks for all exceptions.
Otherwise we'll miss exception caused in pure pyramid view.
2017-01-12 23:36:07 +01:00
Marcin Kuzminski
4e8c6733a7 auth: use pyramid HTTP excetion when detecting CSRF error. It helps catching this
error by our error handler and displaying it nicely to users.
2017-01-12 23:17:19 +01:00
Marcin Kuzminski
e02a88e64d system-info: fix unicode problem on translation 2017-01-12 18:26:34 +01:00
Marcin Kuzminski
526cdfd9b2 i18n: use consistent way of setting user language. 2017-01-12 17:05:06 +01:00
Marcin Kuzminski
64b98245ef code: added more logging, and some notes 2017-01-12 12:54:21 +01:00
Marcin Kuzminski
6d2a154667 auth: improve logging for auth methods. 2017-01-12 12:07:11 +01:00
Marcin Kuzminski
0b609b34b8 user-sessions: fix other backend expired count, and fixed some helper text. 2017-01-12 01:45:46 +01:00
Marcin Kuzminski
584bd214ae vcs: do an early detection of vcs-type request.
We we to know to detect vcs type request as early as possible. IF we know
we're handling an VCS request, we can skip some of the pylons stack initialization.

- This fixes issues with leaking sessions and other object from pylons into
a purely VCS type request.
2017-01-12 01:20:31 +01:00
Marcin Kuzminski
fe5871e9df sessions: added interface to show, and cleanup user auth sessions. 2017-01-11 19:35:42 +01:00
Marcin Kuzminski
9effdf9ee6 git: show stderr only if it happen for calling GIT commands 2017-01-10 10:42:46 +01:00
Marcin Kuzminski
4289b53c04 renderer: don't render plaintext files as RST 2017-01-10 10:38:48 +01:00
Marcin Kuzminski
89e2586781 templating: use .mako as extensions for template files. 2017-01-04 22:13:57 +01:00
Marcin Kuzminski
7041bac598 channelstream: make main exception be base for all others. 2017-01-02 14:11:02 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Marcin Kuzminski
3761402390 pull-requests: updated versioning support.
- each pr version connects invalidated comments to it
- in version list we show number of comments made on each version
- show all outdated comments even for deleted files
- linkify outdated comments to first one
- added auto-collapse of commit range if they are more than 5
- styling changes, wide mode improvements
2016-12-30 12:11:15 +01:00
Marcin Kuzminski
e44090dfe8 diffs: compare overhaul.
- made compare and commit range pages more consistent with other commit diff pages
- removed mergerly, closes #4665. Old diff2way is replaced by new diffs with
  side-by-side mode.
- cleanup button behaviour on compare page. Added help text and
  generally improved UX
- switched file-diffs to compare page with file filter. Part of #4000
- added collapse/expand commits buttons in compare views.
2016-12-22 23:48:05 +01:00
Marcin Kuzminski
92864a9563 comments: save comments that are not rendered to be displayed as outdated.
- when comments that are not assigned to line are outdated this allows them
to  be rendered still.
2016-12-22 19:58:16 +01:00
Marcin Kuzminski
90deb7d32c vcs-server: expose remote tracebacks from http backend using the Pyro4AwareFormatter. 2016-12-21 12:43:47 +01:00
Marcin Kuzminski
9d8634a618 pull-requests: expose version browsing of pull requests.
- show nav for browsing each version of pr
- show detailed changes for each of version
- update comment template to indicate the changes were due to update of a pr
2016-12-19 17:38:22 +01:00
Marcin Kuzminski
eda3a27331 api: implemente missing get_repo_refs api backend. Fixes #4677 2016-12-16 16:15:18 +01:00
Marcin Kuzminski
23643a710a ishell: updated code with latest ishell changes. 2016-12-13 23:44:13 +01:00
Marcin Kuzminski
4f46cb65b2 system-info: fixed reporting of inodes. 2016-12-12 20:22:45 +01:00
Marcin Kuzminski
fab9234763 svn-support: enable better logging of handled SVN commands. 2016-12-12 18:24:43 +01:00
Marcin Kuzminski
bee9b1e921 diffs: fixed other file source when using pull requests. It must use
other repo for fetching proper commits.
2016-12-06 01:25:54 +01:00
Marcin Kuzminski
8b2182110a pull-requests: added version browsing for pull requests.
- invalidated comments now link to previous version to show code context
- removed all deprecated JS code left from new diffs
- improved invalidated comments display logic
- UI tweaks
2016-12-06 00:22:04 +01:00
Marcin Kuzminski
048c2f2740 exception-handling: nicer error catching on repository creation. 2016-12-05 08:51:52 +01:00
Marcin Kuzminski
ec9dc48c28 system-info: indicate http mode is default when not set inside config. 2016-12-02 12:47:41 +01:00
Marcin Kuzminski
6c9444d018 vcs: raise better exception if file node history cannot be extracted.
reference: #4664
2016-12-01 17:50:10 +01:00
Marcin Lulek
84264c3466 channelstream: use sha256 for history filename hashes 2016-11-28 22:38:45 +01:00
Marcin Kuzminski
0d77b2d964 system-info: fix display of text in system inodes. 2016-11-25 17:12:44 +01:00