27 Commits

Author SHA1 Message Date
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
ulferts bd96022925 force evaluation of AR::Scope 2025-03-04 12:05:09 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +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
Christophe Bliard 4c2a9d0aa8 Enable RSpec zero monkey patching mode
The plan for RSpec 4.0 is to disable monkey patching.

See https://github.com/rspec/rspec-core/blob/main/features/configuration/zero_monkey_patching_mode.feature for details.
2023-05-31 19:22:29 +02:00
Dombi Attila 6e14446abf Update the Timestamp duration? logic to handle all valid duration strings 2023-05-25 07:03:20 +02:00
Dombi Attila d340dde884 Store the original string instead of the parsed one in the Timestamp class 2023-05-24 14:25:35 +03:00
Dombi Attila 2ad99470ab Preserve the timezone component of the provided Timestamp string while parsing 2023-05-24 12:55:27 +03:00
Dombi Attila c193387b5c [#47862] Support timezones in the Query#timestamps relative date keywords.
https://community.openproject.org/work_packages/47862
2023-05-03 11:27:26 +02:00
Dombi Attila 8f13c1bc2d Update the documentation regarding the relative date keywords, and rename them to reflect their purpose better 2023-04-20 19:40:30 +03:00
Dombi Attila 581c92a12d Remove the Timestamp#iso8601 methods and add specs for valid? 2023-04-20 19:20:46 +03:00
Dombi Attila 6b4bf96663 Update the work package query timestamps to allow the date bare words 2023-04-20 19:20:45 +03:00
Dombi Attila 82255c5bc1 [#47615] Modify the Query#timestamps attributes to store data of relative date and fixed time combination
https://community.openproject.org/work_packages/47615
2023-04-20 19:20:43 +03:00
Christophe Bliard e207523ed2 Fix parsing of negative iso8601 duration
'P-1D' and '-P1D' both represent the same duration of -1 day.
2023-03-09 17:17:20 +01:00
ulferts abed48891a fix typo 2023-03-01 15:03:10 +01:00
ulferts c5ccdc6cdc enable Timestamp to be used as a hash key
Same time representations should lead to the same hash key
2023-02-23 09:38:44 +01:00
ulferts 8339975088 simplify timestamp handling in url query 2023-02-23 09:36:13 +01:00
Sebastian Fiedlschuster d9bd507d1c Merge 'dev' into https://github.com/opf/openproject/pull/11783 2023-02-20 14:13:27 +01:00
Sebastian Fiedlschuster 0ef6fbb113 Timestamp: make sure an ArgumentError is raised when Timestamp.parse("Pfoo")
Caught by Jens Ulferts in https://github.com/opf/openproject/pull/11678#discussion_r1065755175.
2023-02-12 22:57:35 +01:00
Sebastian Fiedlschuster 8bbbebaafc baseline api: rubocop refactoring
https://github.com/opf/openproject/pull/11783
2022-12-20 22:45:16 +01:00
Sebastian Fiedlschuster 3231f1d7f9 baseline api: handle special-value timestamps like "now" or "2y"
https://github.com/opf/openproject/pull/11783
2022-12-08 23:28:00 +01:00
Sebastian Fiedlschuster 151adf5551 baseline api: parse timestamps in ParseQueryParamsService
https://github.com/opf/openproject/pull/11783
2022-12-08 21:48:59 +01:00
Sebastian Fiedlschuster f8b3039b43 apply rubocop corrections 2022-12-06 18:52:43 +01:00
Sebastian Fiedlschuster 49d14e6631 adding and persisting attribute Query#timestamps
in preparation of the baseline-comparison feature

https://community.openproject.org/projects/openproject/work_packages/26448
2022-10-30 10:23:05 +01:00