Commit Graph

694 Commits

Author SHA1 Message Date
Alexander Meindl
981270d8c8 Use @project instead of @project.di for db queries 2022-03-02 18:21:21 +01:00
Alexander Meindl
9d628dc357 always use select2 with initialize_methods 2022-02-26 17:39:59 +01:00
Alexander Meindl
aef702f57d remove select2 transform 2022-02-26 17:25:26 +01:00
Alexander Meindl
9d4c410e04 Use filter_type list for author and global_user 2022-02-20 11:37:25 +01:00
Alexander Meindl
82e5e4e670 allow custom me value 2022-02-19 08:22:20 +01:00
Alexander Meindl
e92a9de323 fix xlsx_hyperlink_cell check for non strings 2022-02-17 17:33:02 +01:00
Alexander Meindl
21ce271243 more abstraction for ajax_params 2022-02-15 18:33:54 +01:00
Alexander Meindl
e53e10c115 rename filter type watcher to user_with_me 2022-02-01 20:31:33 +01:00
Alexander Meindl
467aa066bf remove principal transform to select2 2022-02-01 20:07:35 +01:00
Alexander Meindl
821c0ded3c cleanup auto_complete controller: use authors with grouped_users 2022-02-01 17:56:30 +01:00
Alexander Meindl
612bd9c9e0 Fix with_me for select2 helper 2022-02-01 17:18:08 +01:00
Alexander Meindl
f24e36fbc7 Allow me for watcher 2022-01-30 16:01:06 +01:00
Alexander Meindl
1000b4987a grouped_users and grouped_principals without me 2022-01-30 15:30:58 +01:00
Alexander Meindl
224dc02361 Working on grouped_users for auto_completes 2022-01-30 14:21:43 +01:00
Alexander Meindl
aaab510462 more abstraction for query list settings 2022-01-27 10:44:24 +01:00
Alexander Meindl
6eede3a111 refactore nil? 2022-01-17 07:26:24 +01:00
Alexander Meindl
2ed2716944 fix some n+1 problems, use bulk for migration and refactored Gemfile for testing 2022-01-13 18:03:29 +01:00
Alexander Meindl
3bf3a08e1f some cosmetics 2022-01-09 20:13:38 +01:00
Alexander Meindl
520eb8241c Fix bool vars for system infos 2022-01-08 19:33:24 +01:00
Alexander Meindl
79b4586ed4 use redmine configuration for configuration variables to show on info 2022-01-08 19:14:58 +01:00
Alexander Meindl
5ba172e835 Use upper letters for debug infos 2022-01-08 17:05:14 +01:00
Alexander Meindl
73306691f4 Add debug infos on information page, if env is set 2022-01-08 17:02:58 +01:00
Alexander Meindl
b389e4de81 Each dashboard block type gets an own css class 2022-01-08 12:28:13 +01:00
Alexander Meindl
c6fddf00bd try to fix tests for redmine 4.1 2022-01-02 12:01:59 +01:00
Alexander Meindl
1063885dce available_column_names with only_groupable and only_totalable 2022-01-02 08:21:43 +01:00
Alexander Meindl
3a339f8fc5 remove wrong comment 2022-01-02 07:31:53 +01:00
Alexander Meindl
3b3a29efec Provide global test for query columns 2022-01-01 18:24:42 +01:00
Alexander Meindl
6622afead3 Provide search methods for queries 2021-12-26 18:04:52 +01:00
Alexander Meindl
5e58ceccba revert validation and add exclude rubocop rule 2021-12-26 08:17:22 +01:00
Alexander Meindl
862ec391c6 Fix not required validator error 2021-12-26 06:18:11 +01:00
Alexander Meindl
e664b1defb Fix rubocop offense 2021-12-26 05:57:23 +01:00
Alexander Meindl
10547fceec Increase allowed feed block to 20 - all blocks are async and no problem on server side 2021-12-17 07:16:45 +01:00
Alexander Meindl
5c525fc9db fix spelling mistake resently to recently 2021-12-15 18:16:34 +01:00
Alexander Meindl
9685886a43 Fixed project default dashboard, if project system dashboard is defined 2021-12-15 15:09:38 +01:00
Alexander Meindl
d4568bf377 Cosmetics 2021-12-15 08:57:15 +01:00
Alexander Meindl
a26584c2ce Removed duplicated translation string 2021-12-09 14:49:18 +01:00
Alexander Meindl
cdf18cdbb4 Use redmine_plugin_kit for plugin loading 2021-12-07 18:51:09 +01:00
Alexander Meindl
ec0379492c support ignore_autoload if Rails > 6 2021-12-02 16:10:22 +01:00
Alexander Meindl
93eaf4ace8 Add deface_setup to loader 2021-12-02 11:16:14 +01:00
Alexander Meindl
32f0526211 Use after_plugins_loaded. See https://www.redmine.org/issues/36245 2021-12-02 08:18:43 +01:00
Alexander Meindl
248bce1be5 Better comment for ActiveSupport.on_load 2021-12-01 17:07:37 +01:00
Alexander Meindl
8ef1f75869 Add yaml_config_load to AdditionalsLoader 2021-11-27 11:59:21 +01:00
Alexander Meindl
28c68d5210 Fix patch loader for plugins, which gemified 2021-11-27 09:00:31 +01:00
Alexander Meindl
ad2d4b7f1f Introduce AddionalsLoader, refactor plugin loading 2021-11-27 08:01:01 +01:00
Alexander Meindl
543108898e Allow auto refresh for queries 2021-11-24 17:52:57 +01:00
Alexander Meindl
ddad9822d7 Allow auto_refresh for async block. refresh_time = cache_expires_in 2021-11-24 11:56:33 +01:00
Alexander Meindl
75d3706cea Show custom field name for long text (and not "description" 2021-11-08 16:58:34 +01:00
Alexander Meindl
a660165bee Cleanup journal helper 2021-11-08 16:46:00 +01:00
Alexander Meindl
80cf3f4685 provide false? for boolean conditions 2021-11-01 17:03:34 +01:00
Alexander Meindl
b710847dc3 Fix rubocop offenses 2021-09-29 15:19:21 +02:00
Alexander Meindl
c9ea96263b use shorter unique key to solve problems on some file systems, which to not support file names, which are longer then 256 characters 2021-09-25 13:49:13 +02:00
Alexander Meindl
c6825cb2d5 remove debugging infos 2021-09-20 16:16:08 +02:00
Alexander Meindl
9bf3eef553 Mermaid and d3 updated. Plugin methods to check installation. Do not allow project modules, if there are disabled 2021-09-20 12:44:10 +02:00
Alexander Meindl
ae0e5cc100 better solution to overwrite available_project_modules 2021-09-18 14:47:56 +02:00
Alexander Meindl
08d7b53757 code cleanup: remove unneeded brackets 2021-09-11 19:55:14 +02:00
Alexander Meindl
bc9054b615 better abstraction for system infos 2021-09-03 17:42:57 +02:00
Alexander Meindl
841f69848a strip dashboard name 2021-08-07 10:22:59 +02:00
Alexander Meindl
ff180afc11 Fix menu_items in top_menu 2021-08-06 14:06:47 +02:00
Alexander Meindl
2fb9368522 Fix top menu 2021-08-06 13:41:39 +02:00
Alexander Meindl
5a84c9ef6e refactore handle_top_menu_item 2021-08-04 06:47:41 +02:00
Alexander Meindl
2abae9dd52 mermaid update and journal controller 2021-07-30 18:51:33 +02:00
Alexander Meindl
6b02a6c04a fixed scope of public project dashboards for all projects 2021-07-23 17:04:39 +02:00
Alexander Meindl
3c48536f77 Fix problem with project new message for issues, if no system default is defined 2021-07-18 19:52:29 +02:00
Alexander Meindl
687bb094a4 Fix project new message box, if no message is defined 2021-07-18 19:39:56 +02:00
Alexander Meindl
bfb51b4b86 add api support for new_ticket_message with projects 2021-07-08 21:06:24 +02:00
Alexander Meindl
7f40a9d165 project based new ticket messages added 2021-07-08 16:56:36 +02:00
Alexander Meindl
d216b14fff convert deprecated keyword parameters 2021-07-06 12:28:07 +02:00
Alexander Meindl
d983b4fb34 Fix rubocop offenses 2021-06-30 19:30:58 +02:00
Alexander Meindl
af96b28f90 do not modify issues/list, if redmine_reporting is installed 2021-06-23 11:52:09 +02:00
Alexander Meindl
e4553dc2e4 fix rubocop rails offenses 2021-06-21 14:52:57 +02:00
Alexander Meindl
5eed75d49c render query methods required in all controllers (because of possible usage with macros 2021-06-20 16:16:38 +02:00
Alexander Meindl
b50db217f7 provide additionals_settings_timefield and update to deface 1.8.1 2021-06-19 12:38:50 +02:00
Alexander Meindl
7ec00005ac Optimize export limit warning to fix redmine tests 2021-06-14 20:31:05 +02:00
Alexander Meindl
c7dc414977 do not use member variable in export_options template 2021-06-14 17:59:35 +02:00
Alexander Meindl
696f4de447 Provide split_ids method and refactor query description 2021-06-13 19:17:30 +02:00
Alexander Meindl
8328491851 Use dynamic columns for export dialog 2021-06-10 13:13:36 +02:00
Alexander Meindl
aeb1af33cb refactor dashboard_link_path for more abstruction to support custom types of dashboards 2021-05-02 09:52:32 +02:00
Alexander Meindl
631d096abe Fix namespace for query column 2021-04-21 14:57:24 +02:00
Alexander Meindl
0580a1da03 Fixing export for tags 2021-04-20 09:53:07 +02:00
Alexander Meindl
07c306fa66 Working on ruby 2.7 updates and warning fixes 2021-04-18 13:34:55 +02:00
Alexander Meindl
e3521b20e5 provide info, if async is used for settings 2021-04-06 19:12:13 +02:00
Alexander Meindl
ad7dbba25d dashboard_async_cache abstraction for async cache 2021-04-04 09:46:56 +02:00
Alexander Meindl
307480051e Fix coding standard 2021-04-02 11:14:26 +02:00
Alexander Meindl
aa989f5cee fix redmine 4.2 deface checksums 2021-04-02 10:37:07 +02:00
Alexander Meindl
bac05942b4 Fix problem frozen string and do not overwrite watcher_values for issues 2021-03-31 14:27:49 +02:00
Alexander Meindl
c996734d6e Fix modal dialog to reopen after first usage rm#7203 2021-03-29 21:49:32 +02:00
Alexander Meindl
5104aeceb4 remove unused code 2021-03-28 09:37:18 +02:00
Alexander Meindl
701c847fd5 Try to fix dashboard block settings style and added tests for Redmine 4.2 2021-03-28 08:55:30 +02:00
Alexander Meindl
1c470e1431 Use larger fields for test block 2021-03-27 18:48:15 +01:00
Alexander Meindl
2365a16bfe Fix broken coding standard 2021-03-27 15:19:04 +01:00
Alexander Meindl
784c120ae5 helper functions for input fields for settings 2021-03-27 15:16:20 +01:00
Alexander Meindl
f505284cda Default width of dashboard block input fields 2021-03-26 18:05:43 +01:00
Alexander Meindl
56c32d6a25 confirm dashboard block delete 2021-03-26 06:34:53 +01:00
Alexander Meindl
4c55b54481 more abstract helper for check_box_tag 2021-03-25 11:55:06 +01:00
Alexander Meindl
07b3afa0c6 fix rubocop offense 2021-03-24 16:20:33 +01:00
Alexander Meindl
8744465c7e Fix some templates for upcoming Redmine 4.2 2021-03-22 14:27:07 +01:00
Alexander Meindl
195a30c1a6 refactoring live search to get cleaner css structure 2021-03-20 19:10:38 +01:00
Alexander Meindl
6ef5479578 provide global helper link_to_external 2021-03-12 18:09:11 +01:00
Alexander Meindl
c794ba0cdb Do not activate project status filter with projects 2021-03-09 06:38:28 +01:00
Alexander Meindl
3bf153a3ac provide project_identifier_filter 2021-03-09 06:04:39 +01:00
Alexander Meindl
20b9191af0 remove project from sql_for_tags_field 2021-03-04 20:03:27 +01:00
Alexander Meindl
2e24efaaa1 Use list_optional for tag filters 2021-03-04 19:09:28 +01:00
Alexander Meindl
54f98a2022 refactor system information 2021-03-02 11:47:10 +01:00
Alexander Meindl
7fd4d78a59 allow overwriting placeholder for live search 2021-02-19 19:03:13 +01:00
Alexander Meindl
2bf34038ea refactore observeLiveSearchField and drop observe_field 2021-02-19 17:04:21 +01:00
Alexander Meindl
38e04d8d10 Fix limit for news dashboard block on welcome dashboards 2021-02-16 09:39:50 +01:00
Alexander Meindl
2a7727f23b provide additionals_settings_urlfield 2021-02-14 13:54:24 +01:00
Alexander Meindl
a9b4c9d40b Allow any host in issues macro to support domain changing 2021-02-08 17:00:10 +01:00
Alexander Meindl
563ff4d961 Support sudo admin switch for async dashboard caching 2021-02-06 07:24:05 +01:00
Alexander Meindl
76b632635f rename codimd to hedgedoc 2021-01-18 08:23:48 +01:00
Alexander Meindl
4494c45157 Use directory name for wiki sidebar template 2021-01-10 18:36:47 +01:00
Alexander Meindl
ae725d1efe Provide fix text filter for queries and updated d3plus 2021-01-06 13:18:58 +01:00
Alexander Meindl
44ba03c200 LiveSearch should use 50% 2021-01-05 12:12:29 +01:00
Alexander Meindl
1237497548 allow public use of clipboardjs_data 2020-12-29 07:57:15 +01:00
Alexander Meindl
50f6d78ff1 Allow customizing mermaid configuration 2020-12-27 17:21:33 +01:00
Alexander Meindl
d149682d82 do not render text with clipboardjs, if no text is provided 2020-12-20 09:12:03 +01:00
Alexander Meindl
b3596e6362 cleanup clipboard helper and provide render_text_with_clipboardjs 2020-12-20 09:10:18 +01:00
Alexander Meindl
0e00985691 Fix html structure for use based macros 2020-12-07 13:47:36 +01:00
Alexander Meindl
b43a23c4cd mermaid updated to version 8.8.4 2020-12-05 17:57:54 +01:00
Alexander Meindl
c05225bfbf Fix sidebar css for dashboards 2020-12-04 16:42:03 +01:00
Alexander Meindl
d72481a8b4 Use lambda for filters, if possible 2020-12-02 19:06:53 +01:00
Alexander Meindl
78a1e97476 tag_values requires parameter 2020-12-02 09:22:18 +01:00
Alexander Meindl
32ba829092 Use lamdba for tag filters 2020-12-01 18:27:20 +01:00
Alexander Meindl
7e4f41db71 Fixing coding standards 2020-12-01 12:01:34 +01:00
Alexander Meindl
aa9fb18bed remove tag helper 2020-11-29 13:45:44 +01:00
Alexander Meindl
111149ea7a Working on gemify 2020-11-29 13:17:02 +01:00
Alexander Meindl
a95e32e7f1 Fix new rubocop offenses 2020-11-24 15:52:16 +01:00
Alexander Meindl
589a18d821 Allow set id for select2 element 2020-11-22 10:07:23 +01:00
Alexander Meindl
880e047fb4 new hooks for wiki 2020-11-20 18:56:45 +01:00
Alexander Meindl
484711d1ce Fix rubocop complains 2020-11-12 17:15:15 +01:00
Alexander Meindl
dd5d074064 Add missing fixtures to dashboard test 2020-11-12 07:08:52 +01:00
Alexander Meindl
a4d5b2f17a Add new dashboard block for text asynchronous 2020-11-06 10:12:25 +01:00
Alexander Meindl
68f5aae4f8 drop settings_compatible which was used for Redmine 3.x compatiblitiy, fix coding standards for rubocop update 2020-11-05 14:39:35 +01:00
Alexander Meindl
e4a1ddb60e Working on user macro and provide crud abstruction for tests 2020-11-04 19:29:52 +01:00
Alexander Meindl
e0b1518cb6 Fix conding standard 2020-10-29 17:05:41 +01:00
Alexander Meindl
513a7d21c2 Use default width 90% for select2 2020-10-23 16:02:27 +02:00
Alexander Meindl
ac18f8e17f added support for redmine_contacts_helpdesk columns #85 2020-10-22 14:56:29 +02:00
Alexander Meindl
bbfd546fa9 Rubocop/security fix for rss feed 2020-10-21 16:19:21 +02:00
Alexander Meindl
bb9fd79470 Do not add watcher with bot user 2020-10-19 09:45:28 +02:00
Alexander Meindl
36f71b488a use is_a? 2020-10-09 09:50:58 +02:00
Alexander Meindl
4baf5459e6 make rubocop happy 2020-10-09 09:09:56 +02:00
Alexander Meindl
ea013df17b do not check system default dashboard, if project is selected (because this is not a system default dashboard, but a project system default dashboard) 2020-10-07 19:49:12 +02:00
Alexander Meindl
deb0cf28f1 FontAwesome 5.15.0 support and Active Record cleanups 2020-10-05 11:46:20 +02:00
Alexander Meindl
39b45c1cdb Fix deface checksome for contacts 2020-09-29 09:36:19 +02:00
Alexander Meindl
cf46389bd8 Do not show assign to me, if assigned_to is disabled 2020-09-28 18:42:12 +02:00
Alexander Meindl
421d1efa9b Force query selection for dashboards not to use descendants 2020-09-27 10:52:02 +02:00
Alexander Meindl
4a81bdefa4 Fix context_menu actions in dashboard query lists 2020-09-27 07:44:14 +02:00
Alexander Meindl
2e3ee658d0 provide grouped_name_for 2020-09-25 15:16:03 +02:00
Alexander Meindl
ec76c85044 Journal helper extentions 2020-09-25 10:42:03 +02:00
Alexander Meindl
f71f0059f4 Fix dashboard error, if custom query fields are defined and query has been deleted 2020-09-24 08:47:52 +02:00
Alexander Meindl
d744711450 Sql cleanups 2020-09-22 10:58:48 +02:00
Alexander Meindl
19e42a0dc4 Add external class to project homepage and remove external for attachments 2020-09-21 17:11:17 +02:00
Alexander Meindl
3ffe0e19ca Fix coding standard 2020-09-18 06:53:53 +02:00
Alexander Meindl
40ed393a08 Only load contact hook, if missing 2020-09-17 11:11:17 +02:00
Alexander Meindl
4e07606e42 provide contacts/_form hook 2020-09-17 11:07:48 +02:00
Alexander Meindl
fe6f239564 Plugin.installed? instead of db field 2020-09-17 07:22:08 +02:00
Alexander Meindl
058e171a53 Log on info for unknown block and do not load user hooks, if hrm is installed 2020-09-16 20:44:14 +02:00
Alexander Meindl
8aa14af0a8 Fix dashboard name in sidebar 2020-09-06 17:31:10 +02:00
Alexander Meindl
ed9e68a72c Drop wiki and footer header, which required RedCloth3::ALLOWED_TAGS div 2020-09-05 17:12:04 +02:00
Alexander Meindl
6c05e81aac Updated javascript libraries, strings for copy-to-clipboard has been added 2020-09-04 18:16:36 +02:00
Alexander Meindl
1b08f9869b refactore gototop 2020-09-02 14:52:32 +02:00
Alexander Meindl
80b5b9b80a Fix conding standards 2020-09-02 14:26:28 +02:00
Alexander Meindl
22dddfdca4 custom items are never subitems 2020-09-02 13:40:05 +02:00
Alexander Meindl
fabe62a166 Fix top menu submenu, which conflicted with existing js 2020-09-02 13:19:59 +02:00
Alexander Meindl
bd408ed849 Fix top menu submenu, which conflicted with existing js 2020-09-02 13:18:05 +02:00
Alexander Meindl
b075c8ceab Fix coding standards 2020-09-01 10:28:04 +02:00
Alexander Meindl
ba0d3dcfb6 Fix top menu with submenu for better support with other plugins and custom themes 2020-09-01 09:15:02 +02:00
Alexander Meindl
a2224d7432 Do not show private dashboards, if user has no permission to save dashboards 2020-08-29 15:56:30 +02:00
Alexander Meindl
09a9acb97b Add info for project configuration in dashboard and sort strings 2020-08-28 07:44:48 +02:00
Alexander Meindl
e168f5dbfe do not allow to set project on project system default dashboard #82 2020-08-25 06:29:39 +02:00
Alexander Meindl
fbaa8af970 Adjust deface checksum 2020-08-23 14:03:30 +02:00
Alexander Meindl
aaddaf2094 Fix project information with empty custom fields 2020-08-23 10:50:46 +02:00
Alexander Meindl
0f35a4efca do not show project information block without information 2020-08-23 10:31:23 +02:00
Alexander Meindl
8e45991b9f working on export options 2020-08-19 11:17:17 +02:00
Alexander Meindl
9ca9ac5315 option for disable columns for export 2020-08-19 10:32:06 +02:00
Alexander Meindl
4a0eef61ec Fix tooltips for dashboard block after update 2020-08-10 19:37:41 +02:00
Alexander Meindl
f8fbcc7806 use log_time permission instead of view_time_entries to show dashboard block my_spent_time 2020-08-10 18:49:48 +02:00
Alexander Meindl
7b15151ab5 use number feld for days 2020-08-10 18:42:26 +02:00
Alexander Meindl
8605261171 Add my spent time block 2020-08-10 18:28:52 +02:00
Alexander Meindl
9bff56e0dc increase cache for feeds and optimize unique_params 2020-08-10 16:19:03 +02:00
Alexander Meindl
dd59c06f28 Fixing coding standards 2020-08-09 12:51:01 +02:00
Alexander Meindl
cc26243a64 More code cleanups 2020-08-09 10:11:52 +02:00
Alexander Meindl
39ee9e4805 Drop some not required brakets 2020-08-08 18:44:40 +02:00
Alexander Meindl
98d8a148de Code cleanups 2020-08-08 17:53:49 +02:00
Alexander Meindl
89fb57f078 Fix syntax error 2020-08-08 12:19:01 +02:00
Alexander Meindl
7da3d5d1a9 Fixing coding standards 2020-08-08 12:13:03 +02:00
Alexander Meindl
400ac2f2f8 Do not allow disable system_default at current system default dashboard 2020-08-07 20:55:50 +02:00
Alexander Meindl
8969158111 do not check visible for query settings 2020-08-07 20:03:16 +02:00
Alexander Meindl
5116eb36f3 Fix form for dashboards and roles 2020-08-07 18:24:23 +02:00
Alexander Meindl
9530005860 Fix dashboard visibility. An author of a dashboard can always view his dashboard 2020-08-07 18:10:18 +02:00
Alexander Meindl
bab0a776d6 Rubocop fixes 2020-08-06 08:18:30 +02:00
Alexander Meindl
1ed492f35f do not allow use of recently used dashboard without permission 2020-08-05 18:18:23 +02:00
Alexander Meindl
aa08c8df42 Fix settings if block is used multiple times on some dashboard 2020-08-04 20:14:19 +02:00
Alexander Meindl
7c63863a87 Increase max blocks to 8 2020-08-04 19:09:18 +02:00
Alexander Meindl
268dd31df9 Some refactoring of User.with_permission 2020-08-03 17:02:04 +02:00
Alexander Meindl
6d0a6ae54e First draft of author scope for dashboards and refactoring of users_by_role 2020-08-03 15:08:33 +02:00
Alexander Meindl
4c1951e79e Do not show expose_always, if set_system_default is not viewable 2020-08-01 19:04:59 +02:00
Alexander Meindl
bfd4a9796e Take care of rare case, if someone owns a system dashboard without set_system_default 2020-08-01 17:30:10 +02:00
Alexander Meindl
597012e285 Remove membersbox class on project overview and fix news scope for welcome page 2020-08-01 16:48:03 +02:00
Alexander Meindl
05145687a9 Correct settings for a dashboard with permission set_system_dashboards or manage_shared_dashboards 2020-08-01 15:26:20 +02:00