Marcin Kuzminski
81eb5a6b72
forms: fix call for secure form
2017-08-01 11:29:43 +02:00
Marcin Kuzminski
42117ffb8e
user-group-admin: use a proper auth filter.
...
- we now use an full sql based perm check based on an earlier fetch of allowed IDS
- fixes problem with sql limit/filter and later filterint that by auth.
- can be optimized later
2017-07-29 22:44:25 +02:00
Marcin Kuzminski
3430eb74e5
repositories: ported repo_creating checks to pyramid.
...
- fixed security issues with resource discovery.
- ported repository creating check into base view for repos.
2017-07-28 15:56:06 +02:00
Marcin Kuzminski
21efeeab37
repositories: handle in a nicer way a filesystem damaged repositories.
...
- redirect with proper flash message about damaged filesystem.
2017-07-28 15:23:45 +02:00
Marcin Kuzminski
858b640885
http-app: adds some logging.
2017-07-28 02:42:52 +02:00
Marcin Kuzminski
ab192470e0
process-management: dont rely on vcsserver code.
2017-07-28 01:24:06 +02:00
Marcin Kuzminski
384dcf30c0
db: use consistent order of auth-tokens and emails when fetching those from user.
2017-07-27 18:13:25 +02:00
Marcin Kuzminski
42d56172a4
user-groups: moved the display of user group into a pyramid view
2017-07-27 18:56:31 +02:00
Marcin Kuzminski
015ea42459
pull-request: code cleanup
...
- use stricter checks
- pull_request_id should be taken from object to cast to INT
- unified some code usage
2017-07-27 22:48:09 +02:00
Marcin Kuzminski
b8804925c3
pull-requests: fix deletion of comments and make the test actually test this !
...
- broken test failed to detect obvious error on comment deletion
2017-07-27 14:46:02 +02:00
Marcin Lulek
e4f789f3f7
pull-requests: fixed tests.
2017-07-27 14:39:21 +02:00
Marcin Lulek
c522025775
pull-requests: add copy helpers into pull requests clone/pull url inputs.
2017-07-27 12:59:20 +02:00
Marcin Kuzminski
eccdae6f25
tests: disable one test that fails because it was written in a wrong way.
...
- we'll re-enable it after migrating user groups to pyramid.
2017-07-27 11:39:56 +02:00
Marcin Kuzminski
b203d5f208
pull-requests: migrated code from pylons to pyramid
2017-07-27 11:30:55 +02:00
Daniel Dourvaris
247e063960
channelstream: log debug should be lazily evaulated.
2017-07-26 20:22:06 +02:00
Daniel Dourvaris
891de4a613
files: fixed few found issues.
...
- ensure non-relative paths are used after migration
- redirect to summary for empty repositories instead of commit page that gives 404
2017-07-26 18:06:16 +02:00
Marcin Kuzminski
2f1b7cd708
ajax: improved error messages for failed ajax calls.
2017-07-26 16:53:56 +02:00
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
6ca6e9d85a
dependencies: bumped sqlalchemy to version 1.1.11
2017-07-25 17:09:03 +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