Commit graph

1531 commits

Author SHA1 Message Date
Marcin Kuzminski
fa5dd62880 channelstream: push events with comments on single commits.
- use wrapper for posting to simplify the code.
2017-07-26 18:04:56 +02:00
Marcin Kuzminski
f1f84b5b64 channelstream: add simple method of posting message to notification channel. 2017-07-26 16:26:35 +02:00
Marcin Kuzminski
ae8340ad2a db: use a wrapper on pull requests _last_merge_status to ensure this is always INT.
- after upgrade of sqlalchemy this is casted to Long
- for backward compat we cast it as Int
2017-07-26 12:16:25 +02:00
Marcin Kuzminski
708f22ac87 db: use unicode for some of the defaults to reduce sqlalchemy warnings. 2017-07-26 12:14:56 +02:00
Marcin Kuzminski
1f94f0b6ca db: fix migration after sqlalchemy upgrade 2017-07-26 10:29:43 +02:00
Marcin Kuzminski
78e4f7d2f1 db: removed two redundant indexes found by never sqlalchemy 2017-07-26 07:45:42 +02:00
Marcin Kuzminski
108d9c0ac0 audit-logs: use stricter limit on how much data the commits key can hold.
- we're limited by a smaller column size
- helps avoid mysql problems
- found after sqlalchemy update
2017-07-26 09:55:51 +02:00
Marcin Kuzminski
f83bfd0951 sqlalchemy: enabled connection ping.
- should fix potential issues with Mysql server has gone away issues
2017-07-25 16:54:10 +02:00
Marcin Kuzminski
93908a0f84 auth: use our own simpler hybrid property.
- we shouldn't relly on sqlalchemy internal method, it has a different purpose.
2017-07-26 09:54:50 +02:00
Marcin Kuzminski
c17e166f5f events: make sure we propagate our dummy request with proper application_url.
- handles proper proxy prefix
- handles https and reverse proxies
2017-07-26 16:19:06 +02:00
Marcin Kuzminski
2656338a0d events: ported pylons part to pyramid.
- fix lack of request context in VCS type events
  we now use a dummy request but it's sufficient for routes generation
- cleanup and re-organized some code
- removed all pylons stuff from the events code
2017-07-26 12:41:14 +02:00
Marcin Kuzminski
ab16b87482 http: ported old depracated retry format for http client. 2017-07-26 12:39:31 +02:00
Marcin Kuzminski
93c5a7f9c5 compare: migrated code from pylons to pyramid views. 2017-07-26 13:28:45 +02:00
Marcin Kuzminski
4de255d013 core: no longer rely on webob exception inside get_or_404 function.
- relly on pyramid exc only
- helps reduce number of appenlight problems with 404 handling via webob
2017-07-25 15:26:38 +02:00
Marcin Kuzminski
0c1f7e3306 auth: improve logging 2017-07-25 15:07:43 +02:00
Marcin Kuzminski
86956d9436 clipboard-action: make the icon provide feedback when clicked. 2017-07-25 10:58:07 +02:00
Marcin Kuzminski
3f26df9f37 user: deprecated usage of api_keys.
- additionally we don't load secrets as they are never used (and are expensive to fetch)
- simplify fetching of details improves performance
2017-07-25 16:27:08 +02:00
Marcin Kuzminski
18aa6692ee ui: fix double icons on quick-menu. 2017-07-24 16:50:30 +02:00
Marcin Kuzminski
8efc4d92c5 repo-commits: ported changeset code into pyramid views.
- refactored part of naming to use commit_id instead of revision
- renamed some parts to repo_commits instead of changeset without breaking backward compat
- small improvements and fixes for tests
2017-07-24 17:04:14 +02:00
Marcin Kuzminski
5b3187fdf9 auth-token: fix way we generate entries inside the list of whitelist names.
the dotted notation is incompatible with how we check those functions using ':' separator.
2017-07-24 15:07:17 +02:00
Marcin Kuzminski
67f8000683 core: use a custom filter for rendering all mako templates.
- brings old pylons function that converted None into a empty markup
2017-07-24 14:28:19 +02:00
Daniel Dourvaris
b253e2b02e security: fix self-xss on modifing gist filename. 2017-07-24 12:49:38 +02:00
Marcin Kuzminski
3b524b7875 renderer: remove usage of old non request PartialRenderer 2017-07-24 09:59:48 +02:00
Marcin Kuzminski
72eb573560 users: made the function for account deactivation easier to use inside ishell. 2017-07-24 11:51:07 +02:00
Marcin Kuzminski
a9064c5007 translation: unified usage of pluralize function ungettext.
- now it's consistent _ungettext for pylons and pyramid
- will allow easier migration to full pyramid codebase
2017-07-24 10:00:06 +02:00
Marcin Kuzminski
49a76c81fe views: fixed some view names for better usage in view whitelist access 2017-07-24 12:28:57 +02:00
Marcin Kuzminski
dc2af71072 permissions: expose new view that lists all available views for usage in whitelist access. 2017-07-21 04:54:36 +02:00
Marcin Kuzminski
8bfe9e6306 templates: add copy to clipboard for repository clone. 2017-07-20 22:29:35 +02:00
Marcin Kuzminski
ff79205313 global-permissions: ported controller to pyramid view.
- fixed some other tests cases to rely on test routing
2017-07-20 15:04:36 +02:00
Marcin Kuzminski
4f16a9a411 repository-groups: introduce last change for repository groups. 2017-07-20 12:59:53 +02:00
Lisa Quatmann
666cb615d5 styling: updated old icons based on the new definitions.
- making things look nicer.
2017-07-19 22:54:49 +02:00
Lisa Quatmann
bb02ca46d7 debug-styles: let the autogenerated fonts be read automatically from the .less files.
- Magic ! :)
2017-07-19 22:53:56 +02:00
Lisa Quatmann
79c428dc10 styling: updated icon files. 2017-07-19 22:53:13 +02:00
Marcin Kuzminski
a98d55f137 clipboard: added dummy placeholders for copying commits/paths via clipboard.js 2017-07-19 11:38:34 +02:00
Marcin Kuzminski
87b9dede56 core: added clipboard js to package. 2017-07-19 10:49:36 +02:00
Marcin Kuzminski
c276174e89 journal: ported controller to pyramid code 2017-07-18 23:38:15 +02:00
Marcin Kuzminski
cf9b29a5bc tests: lazy load the JSON history for tests.
- loading on module level makes this evaluated every time we start the server.
2017-07-18 00:21:30 +02:00
Marcin Kuzminski
b2714a3c1d changelog: ported to pyramid views. 2017-07-18 00:07:43 +02:00
Marcin Kuzminski
f81ec24cc9 tests: no-newline generator should also replace \r 2017-07-17 23:21:01 +02:00
Marcin Kuzminski
678a930750 routing: use a common method to extract the f_path for repo views.
The extra slashes can cause odd issues with GIT, the previous
pylons code had a fix in routing. This ports this fix into
pyramid helper in base app.
2017-07-17 23:09:33 +02:00
Marcin Kuzminski
55148c3e6c pyramid: moved add_route_requirements into pyramid base app.
- use it integrations, and simplify the code.
2017-07-17 23:08:07 +02:00
Marcin Kuzminski
53611d6f94 files: ported repository files controllers to pyramid views. 2017-07-17 14:20:22 +02:00
Marcin Kuzminski
5184f34ead svn: don't raise duplicate exception. The function already does that. 2017-07-17 14:19:22 +02:00
Marcin Kuzminski
73ffe35c5b tests: re-use assert_session_flash to also test for negative cases.
- removes code duplication
2017-07-17 14:16:14 +02:00
Marcin Kuzminski
01618e7be5 pyramid: expose a temporary TemplateContext under _c 2017-07-14 12:49:53 +02:00
Daniel Dourvaris
7add053ff8 users: add additional information why user with pending reviews shouldn't be deleted. 2017-07-13 22:40:12 +02:00
Marcin Kuzminski
e6113a3d7b pyramid: use explicit c var for globals passed in templates instead of the global 'request' 2017-07-13 19:50:28 +02:00
Marcin Kuzminski
8ff5e04569 notifications: removed usage of pylons translation from models. 2017-07-13 17:58:15 +02:00
Marcin Kuzminski
580a0d0ea5 notifications: ported views to pyramid 2017-07-13 18:28:31 +02:00
Marcin Kuzminski
7caba28f0e pyramid: fix problem with default language for users without any explicit one set. 2017-07-13 12:54:02 +02:00