54 Commits

Author SHA1 Message Date
Jan Sandbrink 272ff67619 Introduce visible scope for types and statuses
Both models are only supposed to be visible
to users that have some basic permissions in at least
one project. While the desired scoping is not very fine grained
(you either see all or nothing), it still makes sense for all
models to have such a scope for consistency purposes.
2026-02-19 13:27:24 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Christophe Bliard 15005eea6b [49409] Add icon to progress fields if status is excluded from totals 2024-05-28 17:07:19 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Klaus Zanders 4d82c85e33 Allow access to status API when work package is viewable 2023-11-27 10:23:02 +01:00
Klaus Zanders 520bdeea5b First batch of API changes for authorization checks 2023-10-30 11:50:54 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Oliver Günther 0a84a0b671 [36296] Add PlaceholderUsers API (#9033)
* Add PlaceholderUsers API

* Fix remarks in apib

* Add deduce_element_decorator to collection

* Remove unnecessary path
2021-02-23 11:18:05 +01:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
Benjamin Bädorf e848d44dea Fix/update wysiwyg styles (#8844)
This is a refactoring of the CSS classes in the WYSIWYG editor. The classes now use proper BEM and are almost completely independent of other CSS. It also includes small style refactorings, like a reduction of heading size in attribute fields, and an increase in heading size in all other instances.

* Initial class definitions

* Added more classes

* Added Table of Contents basics

* CkEditor applying custom CSS classes to p, h1, h2, h3, h4, h5, h6, li and blockquote

* CKEditorInspector removed

* op css class for headings

* op css class for paragraphs

* op css class for code/code block

* adapt specs to altered markdown/html generation

* adapt grid/budget representers to altered signature

* op css class for lists

* op css class for toc

* op css class for links

* Start working on typography css

* op css class for tables

* Fixing more typography, trying out larger headers

* Applying custom classes to li, a, blockquote, figure, table, tr, td, th, image, codeblock, figcaption and macros

* adapt specs to altered link classes

* op css class for images

* apply user content container class throughout application

* CSS alignment custom classes applied to table

* op css class for task list checkbox

* Added task checkbox class

* amend list checkbox class in backend

* op css class for table thead element

* adapt specs on image html generation

* Updated table and typography styles

* Update typography and figure styles

* Figure overflow handling

* Table alignment styles + ckEditor styles removed

* rename wiki-anchor to op-uc-link_permalink

* wrap table in div as well as figure

* Updated code-block

* Update permalinks

* Fixed a lot about tables

* Removed Description header from work-packages page

* Fix frontend styles

* Add placeholder styling, fix toc

* Fixed figure print

* working with table aligns

* Custom class add to task lists

* Custom classes applied to theads

* op-uc-container custom class added to container

* Codeblocks inside pre elements

* Fix: single <code> and <a> tags

* explicitly require overwritten gem class

Apparently, the gem is not loaded yet when it is registered as a filter when in eager loading mode

* adapt spec expectation to altered toc rendering

* CkInspector removed

* Latest ckeditor changes

* remove highlight css class from wiki content

* allow html pipleline to handle macros with additional classes

* Fixed a lot of print css for tables

* Add general print css back in

* Update Table of Contents styling

* Custom classes on ul, ol, li and task-lists

* Revert "Custom classes on ul, ol, li and task-lists"

This reverts commit 0d27d28137.

* Custom classes on ul, ol, li and task-lists

* Custom classes on column's th

* remove placeholder class when rendering

* WOrking on task lists

* Changing task-list classes, changed tests

* Updated list styles

* Remove unused todo list styles

* remove checked in binstubs

* Fix table of contents

* adapt todo list handing in backend pipeline

* adapt specs to altered css classes

* Add numbers to table of contents

* Better comments in table of contents

* Fix: wrap single <table> with a <figure>

* Fixes to todo list design

* Updated todo list scss to fix nested lists

* adapt selectors in table spec

* Update table styles

* Improve table borders more

* Custom classes specs

* Fix: no need to remove regular list classes when its type changes

* Add modifier for inline headings

* Update table editing styles

* Remove break-word tests

* wrap images just like tables

* Update figure content styles

* Fix: All tests passing (ul.op-uc-list_task-list)

* div.op-uc-figure--content wrapping tables

* Specs for figures wrappers div.op-uc-figure--content

* Fix: add custom classes to links and codes again

* Table wrapper div reverted + specs

* Fix inline palceholders

* Custom macro type classes

* Add basic macro placeholder changes

* Move heading permalink after text

* Fix word-break spec

* Sending figure styles to the backend (width)

* extend test to take ckeditor placeholder into account

* avoid adding bem classes multiple times

* attempt to fix flickering spec

* Removing image spinner when uploading finishes

* adapt spec expectations

Co-authored-by: Aleix Suau <info@macrofonoestudio.es>
Co-authored-by: ulferts <jens.ulferts@googlemail.com>
2020-12-04 12:25:26 +00:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 1b5fc32366 Avoid before blocks and raw params access for IDs
Grape's validation runs after a `before` block so we should avoid using
raw params there and instead using `declared(params)` which returns only
the validated whitelisted params, much like a permitted params hash.
2019-05-22 09:34:17 +02:00
ulferts 1850622f20 Feature/versions api update (#7299)
Feature/versions api update

[ci skip]
2019-05-22 10:29:06 +03:00
Oliver Günther 3ba6913960 Implement read-only work package attributes based on status 2018-11-12 08:19:19 +01:00
Oliver Günther f254c9ea71 Merge remote-tracking branch 'origin/dev' into housekeeping/colors 2018-06-14 07:50:44 +02:00
Jens Ulferts 2956d0b652 bust filter dependency cache on form_embedded changes 2018-05-23 16:01:49 +02:00
Oliver Günther 2f0e9c1c07 Add color to status 2018-05-09 20:25:21 +02:00
Jens Ulferts ce21ee20f7 cached representers 2018-04-25 14:36:10 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Jan Sandbrink 6e9ed008fb Enforce passing of current_user into representers
Thereby permission checks will no longer silently fail if no user was
passed.
This uncovered a lot of places where we actually expected a user to be passed, when it wasn't.
This was especially true for collections.
The basic idea is, that virtually all representers could change their behaviour based on the current user.
Representers where this is not the case (e.g. Digest), can still explicitly opt-out.
2015-09-03 16:28:05 +02:00
Alex Coles cfe4ac45d8 Merge branch 'dev' into feature/merge-dev-into-rails4
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-08-17 12:34:00 +02:00
Jan Sandbrink b332ef06aa make collection representer explicitly unpaginated 2015-08-10 10:15:17 +02:00
Alex Coles a6212fb304 Fix syntax (w/Rubocop) in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-06-30 12:08:31 +02:00
Alex Coles a58650e7c6 Add/update Copyright headers in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-04-21 10:24:04 +02:00
Jan Sandbrink b1ba33c75b specify classes explicitly rather than implicitly
This is a new try for the APIv3 classes, we either:
- FULLY qualify a class and let the autoloader do the rest
- don't qualify at all, but require the class explicitly

Thus we do not (yet) completely give up on the rails autoloader,
but we circumvent a fair amount of its magic (and problems).

The hope is to eliminate the following problems in development mode:
- NameErrors because the autoloader infers the wrong prefix
- "object is not missing constant" errors occuring more rarely

Let's see how that turns out to work...
2015-03-25 14:17:28 +01:00
Jan Sandbrink f0863f9d53 allow to patch existing API endpoints 2015-03-18 16:26:15 +01:00
Jan Sandbrink a72ea0d5af more consequently use route_param
this seems to be the GRAPE-iest way possible
2015-03-06 12:34:25 +01:00
Jan Sandbrink 7c2a686657 make self_link even more awesome 2015-02-12 13:19:57 +01:00
Jan Sandbrink 327c53cb94 extract helper for self links 2015-02-11 13:02:49 +01:00
Jan Sandbrink 4d9f65db84 return 403 for statuses when not authorized
this violated the spec and was found during refactoring...
2015-01-30 11:41:56 +01:00
Jan Sandbrink f2e6048a45 use more condensed way of creating users
- also remove requires that seem to have failed the status_resource_spec for me
2015-01-30 11:27:04 +01:00
Jens Ulferts da588b812c harmonize api decorators 2015-01-15 08:39:16 +01:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Hagen Schink 746f7cce74 Use API V3's path helper 2014-11-25 18:38:01 +01:00
Hagen Schink 10ea44dad3 Implement collections specification 2014-11-20 13:06:47 +01:00
Hagen Schink b4173e76e3 Implement API V3 statuses/:id endpoint 2014-11-18 14:08:07 +01:00
Hagen Schink 7d119c4e0f Add further status properties to representer 2014-11-18 14:08:07 +01:00
Hagen Schink 2e2d51fd32 Implement WP status update on API V3 WP forms 2014-11-07 08:13:03 +01:00
Hagen Schink 6ec63bc9af Update reform and its dependencies 2014-11-05 09:38:29 +01:00
Hagen Schink db8bfba3af Remove usage of reform from API V3 2014-11-05 09:38:28 +01:00
Alex Coles 45297523c2 Fix syntax (w/Rubocop) in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-03 23:49:01 +01:00