Commit graph

1370 commits

Author SHA1 Message Date
Marcin Kuzminski
abda1c528f pr-versioning: link-changes 2017-01-25 21:45:47 +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
452fb50caf user-sessions: fixed tests and translation mechanism for user sessions. 2017-01-28 19:58:59 +01:00
Marcin Kuzminski
41e7391c22 config: updated example gunicorn configuration. 2017-01-28 19:24:47 +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
06715c8d97 comments: register different slash commands for inline vs general comments. 2017-01-25 21:29:22 +01:00
Marcin Kuzminski
d90e6712d6 code-mirror: implement slash actions instead of ctrl+space.
- added set as note,todo for general comments.
2017-01-25 20:40:24 +01:00
Marcin Kuzminski
d055888eda comments: link to resolved comment in FIX comment type. 2017-01-24 16:11:41 +01:00
Marcin Kuzminski
f08be8b977 user-sessions: fix wrong date calculation. 2017-01-25 17:43:50 +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
6951a1ab96 dependencies: bumped pygments to 2.2.0 2017-01-25 13:58:58 +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
05d89e4d2c tests: fixed tests after removing hardcoded timezone in tests. 2017-01-24 15:30:10 +01:00
Marcin Kuzminski
e326a3f835 gists: fixed tests after timezone change 2017-01-24 11:05:10 +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
3c07176dde core: remove global timezone hook.
- this is leaking into main application causing TZ problems
- fixes #5174
2017-01-23 16:55:50 +01:00
Marcin Kuzminski
c340efddae gists: fixed translation for age component which uses pyramid translate component. 2017-01-19 14:58:52 +01:00
Marcin Kuzminski
57268f2564 merge-logic: improve merge failed because of conflicts message. 2017-01-19 14:04:19 +01:00
Marcin Kuzminski
a044290ee2 comments: show links to unresolved todos
- show hidden comments when using navigation for comments
- small UI fixes
2017-01-19 13:59:02 +01:00
Marcin Kuzminski
7b5e288d8c outdated-notes: show navigation on outdated comments 2017-01-19 13:58:15 +01:00
Marcin Kuzminski
e63934c25b todos: all todos needs to be resolved for merge to happen.
This will prevent the outdated todos beeing automatically marked as solved becuase of bigger diff
changes. It's better to mark commits quickly as resolved instead of potentially have unresolved todos hidden
because of invlidation logic.
2017-01-19 13:57:46 +01:00
Marcin Kuzminski
82fd870fe4 merge-checks: added more detailed information about why merge is not possible.
- information is stored inside .error_details now.
2017-01-19 13:56:23 +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
b753a099d7 svn-conf: hide password entries in logs for generated configuration. 2017-01-16 18:13:24 +01:00
Marcin Kuzminski
3f9289f77f api: added comment_resolved_id into aprameters to resolve TODO notes via API. 2017-01-18 19:15:46 +01:00
Marcin Kuzminski
cc9db5e79e api: added possibility to specify comment_type for comment API. 2017-01-18 19:07:49 +01:00
Marcin Kuzminski
7ff55b266b tests: fixed api merge tests after introducing merge checks. 2017-01-18 14:29:21 +01:00
Marcin Kuzminski
30637758d6 pull-requests: unified merge checks.
- same logic is now used for API, pre-conditions on show, and checks on actual merge
- added checks into API because it was not validated
2017-01-18 14:56:20 +01:00
Marcin Kuzminski
e5f1efc7f7 pull-request: introduced new merge-checks.
- merge checks show nicer UI for status of merge approval inside PR
- merge checks now also forbid a merge if TODO notes are present
- use global refresh merge check when submitting comments. It
  no longer required page reload when submitting status change.
2017-01-16 22:58:44 +01:00
Marcin Kuzminski
986141fb9f tests: fixed tests for changed repr. 2017-01-16 18:59:36 +01:00
Marcin Kuzminski
e8447b4107 comments: use unified aggregation of comments counters.
- use 1 source of count and display objects
- scroll to for hidden comments will show them before scroll
- properly show how many comments we're displaying for each version
2017-01-16 18:12:38 +01:00
Marcin Kuzminski
a24ca60752 comments: fixed compare view comments. 2017-01-11 14:03:18 +01:00
Marcin Kuzminski
caee47148f comments: skip already deleted comments and make sure we don't raise unnecessary errors. 2017-01-11 14:02:34 +01:00
Marcin Kuzminski
62e22ad5de js: cleanup linkifyComments function 2017-01-11 14:13:55 +01:00
Marcin Kuzminski
c4b49c5757 js: cleanup unused javascript code. 2017-01-10 23:48:20 +01:00
Marcin Kuzminski
e18c9b0cec comments: do a better reset state. 2017-01-10 23:38:08 +01:00
Marcin Kuzminski
6ccb2377c3 comments: enabled resolution for general comments, and finalized how general comment is build 2017-01-10 23:51:49 +01:00
Marcin Kuzminski
8f1db17117 comments: allow submitting id of comment which submitted comment resolved.
- use common template for inject forms
- cleanup of JS models, bind class of Form into the form itself
2017-01-11 15:05:33 +01:00
Marcin Kuzminski
24ef7171f8 comments: add comments type into comments. 2017-01-11 14:46:29 +01:00
Marcin Kuzminski
b52808ca95 comments: renamed ChangesetCommentsModel to CommentsModel to reflect what it actually does.
It's not limited to Changesets/Commits.
2017-01-09 17:52:00 +01:00
Marcin Kuzminski
828c060bdd comments: changed signature of create method of ChangesetComment.
- use commit_id instead of revision
- add placeholder for comment_type
2017-01-09 17:46:53 +01:00
Marcin Kuzminski
5bab4b8a0c login: removed log_session model, and replaced it with two lines of code.
- also remove usage of template context
- having dedicated model for this operation wasn't really required.
2017-01-13 14:04:44 +01:00
Marcin Kuzminski
266f9e7ec4 integrations: remove usage of template context from integrations models 2017-01-13 13:59:02 +01:00