Commit graph

218 commits

Author SHA1 Message Date
Anton Ignatov
84fe10df47 Fix tests for models and tema import/export 2019-07-26 12:40:36 +02:00
Luka Murn
83bb89fdf5 Cherry-picked commit from ZZ (and LM)'s various changes 2019-07-26 10:13:14 +02:00
Oleksii Kriuchykhin
9d926dc956 Refactor TinyMce assets, user avatars, zip files [SCI-3539] 2019-07-05 16:56:05 +02:00
Jure Grabnar
6e1d4c205c Add tests for page_id for search service 2019-07-04 16:02:29 +02:00
Urban Rotnik
9cb4454537 New implementation for attachments creation 2019-06-27 17:02:06 +02:00
Jure Grabnar
06b8d1fda7 Update ApiClient tests
Closes SCI-3434
2019-06-27 14:54:19 +02:00
Mojca Lorber
9fd83d54a0 Put network error handeling into api and refactor errors 2019-06-26 14:04:03 +02:00
Mojca Lorber
ebcaa4b014 Implement protocols.io error handling for api client and normalizer 2019-06-18 14:01:57 +02:00
Urban Rotnik
7fad5fc594 Add search service and normalizer for list 2019-06-17 12:24:15 +02:00
Jure Grabnar
eb0d677a36 Refactor pio_protocol -> built_protocol 2019-06-17 12:24:13 +02:00
Urban Rotnik
0d43ecdfab Import protocol service after object is built 2019-06-17 12:24:11 +02:00
Jure Grabnar
eb275c4d12 Add tests for BuildProtocolService and fix bugs 2019-06-17 12:24:11 +02:00
Jure Grabnar
640f6c1211 Fix tests after BuildProtocolFromClientService refactor
Closes SCI-3544
2019-06-17 12:24:11 +02:00
Jure Grabnar
1e8627c450 Refactor ImportProtocol service to BuildProtocolService
Closes SCI-3544
2019-06-17 12:24:10 +02:00
Urban Rotnik
92c24451d9 Moved normalized_single_protocol.json 2019-06-17 12:24:10 +02:00
Urban Rotnik
a15596a126 Add ImportProtocolService 2019-06-17 12:24:10 +02:00
Luka Murn
98234287f5 Fix failing permission_eval_spec test 2019-05-31 10:33:55 +02:00
Oleksii Kriuchykhin
0fd7a4e8f1 Fix failing tests [SCI-3412] 2019-05-27 17:32:21 +02:00
Alex Kriuchykhin
2a7f70929a
Merge pull request #1717 from okriuchykhin/ok_SCI_3368
Improve clean up of Export All files [SCI-3368]
2019-05-09 13:37:56 +02:00
Urban Rotnik
2364c2653f Add bulk insert for UserSystemNotifications, New service for sending emails 2019-05-08 08:38:10 +02:00
Oleksii Kriuchykhin
84712de9ca Fix failing tests [SCI-3368] 2019-05-07 16:42:06 +02:00
Oleksii Kriuchykhin
96cf7b4de2 Fix failing tests [SCI-3177] 2019-04-17 12:58:47 +02:00
Urban Rotnik
86ddbc68b6 fixup! Show date actual value without link 2019-04-02 14:21:06 +02:00
Urban Rotnik
8eaeeee9f8 Show date actual value without link 2019-04-02 13:15:34 +02:00
Urban Rotnik
b91f08fe99 Add activity for copying Inventory and Invetory item 2019-04-01 15:40:00 +02:00
Jure Grabnar
e165459ef5
Merge pull request #1574 from jbargu/jg_sci_3149_3163
Valid smart annotation links of smart annotation imported within protocol [SCI-3149, 3163]
2019-04-01 14:32:54 +02:00
Miha Mencin
4a87216a3d
Merge branch 'master' into features/global-activities 2019-03-25 14:35:24 +01:00
Jure Grabnar
f3e6a35121 Update PermissionEval tests with team check 2019-03-21 10:45:21 +01:00
Jure Grabnar
5de51f9c58 Prevent smart annotations accessing other teams when importing protocol
Closes SCI-3163
2019-03-20 12:58:22 +01:00
Mojca Lorber
70eebca5ee experiment activities refactoring 2019-03-19 15:33:57 +01:00
Urban Rotnik
c65d1af18d Fix failing tests 2019-03-13 09:53:34 +01:00
Urban Rotnik
b8e84b5685 Add logic for saving message items values and types 2019-03-11 08:37:22 +01:00
Urban Rotnik
117944117b Add service for activity creation 2019-03-11 08:36:15 +01:00
Miha Mencin
51b3aea49a added uniquness validator and index on user_projects and user_teams relations
finxing typo, fixied failing test

fixing mistakenly commited file

fixing schema to include bigint migration
2019-02-27 15:09:47 +01:00
Urban Rotnik
7b6c6c414d Merge branch 'master' into features/templates 2019-02-19 14:46:15 +01:00
aignatov-bio
fcdb4e7a92
Merge pull request #1500 from biosistemika/features/system-notifications
Features/system notifications
2019-02-19 13:51:18 +01:00
Urban Rotnik
f63eaaefe7 Add user_system_notification records when syncing notifications, update email sending 2019-02-19 11:22:58 +01:00
Alex Kriuchykhin
185e3b4832
Merge pull request #1495 from okriuchykhin/ok_SCI_3039
Create templates project when syncing templates if team doesn't have it [SCI-3039]
2019-02-14 17:40:01 +01:00
Urban Rotnik
5b55860dea Add scheduler 2019-02-13 15:48:15 +01:00
Urban Rotnik
9f3187abdf Add service for sync system notifications 2019-02-13 15:48:15 +01:00
Oleksii Kriuchykhin
da30d187a6 Create templates project when syncing templates if team doesn't have it [SCI-3039] 2019-02-13 15:17:33 +01:00
Mojca Lorber
5825c7120d fix falling test 2019-02-13 11:49:01 +01:00
Alex Kriuchykhin
b71c9d96a2
Merge pull request #1476 from okriuchykhin/ok_SCI_2944
Add test for templates service [SCI-2944]
2019-02-12 09:39:03 +01:00
Oleksii Kriuchykhin
acbbc1a9f8 Add comment [SCI-2944] 2019-02-11 13:40:25 +01:00
Oleksii Kriuchykhin
92b47a3034 Remove unneeded ordering [SCI-2967] 2019-02-07 11:23:40 +01:00
Jure Grabnar
c5780927a8 Change a test to work with multiple tests run at the same time 2019-02-06 22:07:54 +01:00
Jure Grabnar
6ae82401f3 Add test experiment.json file 2019-02-06 21:06:56 +01:00
Jure Grabnar
0fa403d6b0 Refactor tests fro experiment import
Closes [SCI-2946]
2019-02-06 14:27:43 +01:00
Jure Grabnar
55fdd201b2 Add additional checks 2019-02-05 14:27:42 +01:00
Jure Grabnar
0a3146fbe6 Add checking of experiment basics 2019-02-05 14:27:42 +01:00
Jure Grabnar
e180d5e100 Add test skeleton for importing 2019-02-05 14:27:42 +01:00
Oleksii Kriuchykhin
79c7bbbfb0 Fix failing tests with local file storage [SCI-2944] 2019-02-04 13:50:38 +01:00
Oleksii Kriuchykhin
19f1585352 Add test for templates service [SCI-2944] 2019-02-01 18:06:36 +01:00
Urban Rotnik
6f7fcb0831 Refactor method clone_experiment_as_template into service object
[SCI-2925]
2019-01-31 07:13:40 +01:00
Urban Rotnik
4cf12d12d1 Refactor 'move_experiment' method into service object
Jira Ticket: SCI-2926
2019-01-28 11:45:36 +01:00
Urban Rotnik
f1d59e65f3 Add module and rename service object 2019-01-18 16:56:33 +01:00
Urban Rotnik
b41dc0a4d5 Specs for workflow_image_fenerator
fix SCI-2924
2019-01-18 16:56:33 +01:00
Urban Rotnik
47cc6a9d10 Refactor workflow_image_generation and move to service class 2019-01-18 16:56:33 +01:00
Matej Zrimšek
2f6a6072e1 Fix repository ZIP export test to work with enabled workers [SCI-2646] 2018-11-07 06:14:40 +01:00
Matej Zrimšek
8fe0249f45 Fix test for repository ZIP export & return path for ZIP exports [SCI-2646] 2018-11-07 05:04:29 +01:00
Matej Zrimšek
17712f5142 Minor tests refactoring [SCI-2732] 2018-10-23 22:24:57 +02:00
Matej Zrimšek
98009939d1 Fix tests for project services to work with changed code [SCI-2732] 2018-10-23 22:24:57 +02:00
Matej Zrimšek
1c43077a5e Add visibility check to tests (redundant in most cases, but safer) [SCI-2732] 2018-10-23 19:51:50 +02:00
Matej Zrimšek
173ebdcf87 Fix some tests wich falsely passed locally; Some description refactoring [SCI-2732] 2018-10-23 19:51:50 +02:00
Matej Zrimšek
1be952fdbb Fix context block for ProjectsOverviewService#projects_datatable test with { filter: 'archived' } parameter 2018-10-23 19:51:50 +02:00
Matej Zrimšek
4bf1d904b7 Add project controller unit tests [SCI-2732] 2018-10-23 19:51:50 +02:00
Matej Zrimšek
e5129160fe Use the previous way of handling request params in rspec [SCI-2732] 2018-10-23 19:51:50 +02:00
Matej Zrimšek
d9281b66d5 Add test for sorting by column and order for ProjectsOverviewService#projects_datatable 2018-10-23 19:51:50 +02:00
Matej Zrimšek
5ea4a2ced3 Refactor ProjectsOverviewService tests to be request parameter friendly and hence more readable 2018-10-23 19:51:50 +02:00
Matej Zrimšek
b982ffe7c8 Improve & refactor #project_cards, add #projects_datatable tests for ProjectsOverviewService 2018-10-23 19:51:50 +02:00
Matej Zrimšek
2794f75215 Add ProjectsOverviewService#project_cards unit tests 2018-10-23 19:50:06 +02:00
zmagod
c683cfdbd7 triggers the delayed job in the controller action, fixes smart annotations 2018-05-25 11:41:43 +02:00
Zmago Devetak
8a92f1a499
Merge pull request #1127 from ZmagoD/zd_SCI_2307_v3
Adds custom method that generates smart annotations name for repository
2018-05-16 13:23:25 +02:00
zmagod
69783cb73e removes unneeded spec 2018-05-16 12:11:18 +02:00
Luka Murn
38f4d0524f Add spec for sequential creations and deletes
Closes SCI-2320.
2018-05-15 20:44:15 +02:00
Luka Murn
b29cde4414 Add repository table state column update service spec
Include both service methods. There remains some additional tests
that should be written.
2018-05-15 20:44:15 +02:00
Luka Murn
9e106acf73 Add spec for repository_table_state_service 2018-05-15 20:44:15 +02:00
Luka Murn
611a25ca9f Minor change in existing spec to user the service 2018-05-15 20:44:15 +02:00
Luka Murn
6218907d31 Add blank, initial files 2018-05-15 20:44:15 +02:00
zmagod
3e10ff7fc5 add custom method that generates smart annotations name from repository name [fixes SCI-2307] 2018-05-04 10:44:23 +02:00
zmagod
7d26ce561c parse smart annotations in repository export [fixes SCI-2310] 2018-04-24 14:53:49 +02:00
zmagod
3431ab2da3 fix failing spec 2018-04-24 09:53:26 +02:00
zmagod
f56f457c78 fixes failing specs 2018-04-23 13:34:56 +02:00
Zmago Devetak
6b4d786acc
Merge pull request #1105 from ZmagoD/zd_SCI_2307
change repository icon
2018-04-19 17:58:48 +02:00
zmagod
ec5a8336b9 fixes failing spec 2018-04-19 17:46:44 +02:00
zmagod
4f21833373 changes per @duco 's request 2018-04-13 11:47:33 +02:00
zmagod
cebb06269b refactor specs 2018-04-12 13:34:34 +02:00
zmagod
7f93cf6220 adds specs for duplicate class 2018-04-12 13:00:21 +02:00
Zmago Devetak
d1f3a65279
Merge pull request #1073 from ZmagoD/zd_SCI_2206
add ID column to repository [fixes SCI-2206]
2018-04-04 15:39:59 +02:00
zmagod
6e255a4657 fixes failing specs 2018-04-04 14:44:32 +02:00
zmagod
659a088058 refactor smart annotation parser, adds repository item to smart annotation parser [fixes SCI-2222] 2018-03-29 15:55:26 +02:00
zmagod
1cdba5e0d3 Merge branch 'samples_to_repositories_table_migration' of https://github.com/biosistemika/scinote-web into zd_SCI_2068 2018-03-16 11:05:16 +01:00
okriuchykhin
503617b42c
Merge branch 'samples_to_repositories_table_migration' into zd_SCI_2025 2018-03-13 14:44:20 +01:00
zmagod
32d2d218ba fix failing specs 2018-03-13 11:24:16 +01:00
zmagod
22eb4121f0 follow @okriuchykhin 's suggestions 2018-03-09 15:44:42 +01:00
zmagod
0baa7a1f99 fix hound 2018-03-09 14:43:12 +01:00
zmagod
4f951f6679 adds unit specs for datatable service [fixes SCI-2068] 2018-03-09 14:22:00 +01:00
zmagod
fca01bd54f refactor repository export [fixes SCI-2025] 2018-03-05 15:54:04 +01:00
zmagod
83db7ed01d adds rake task to migrate the samples in custom repositories and tests [fixes SCI-2014] 2018-02-26 17:21:58 +01:00
zmagod
5922aa21a8 adds fetch_all_team_samples method/spec 2018-02-15 17:38:45 +01:00
zmagod
c53df21946 adds specs for sample_to_repository migration service 2018-02-15 16:56:38 +01:00
zmagod
e0ac8e8f91 extract helper methods in service 2018-02-15 09:36:09 +01:00
zmagod
e0b6683a44 create view directory per @Ducz0r 's request 2017-11-09 10:06:53 +01:00
zmagod
e0323a0a46 fixes failing tests 2017-10-27 09:35:39 +02:00
Luka Murn
c026b60790 Update Profile page to use validation 2017-10-23 18:04:20 +02:00
zmagod
dea69014d0 fixes bug with password confirmation 2017-10-06 09:54:17 +02:00
zmagod
754627efe7 Merge branch 'decoupling-settings-page' of https://github.com/biosistemika/scinote-web into zd_SCI_1564 2017-10-05 11:08:31 +02:00
Luka Murn
334a8a600b Merge branch 'decoupling-settings-page' into lm-sci-1620 2017-10-02 11:39:13 +02:00
Luka Murn
fbddf4da79 Update Gemfile for correct devise version, minorly fix services spec 2017-10-02 11:37:58 +02:00
mlorb
c358f8fa0c write unit tests for invite users 2017-09-28 14:49:33 +02:00
zmagod
e2aa0d7515 fixes user profile 2017-09-26 17:29:11 +02:00
Luka Murn
6e082ccc24 Hound is love, Hound is life #2 2017-09-21 19:20:19 +02:00
Luka Murn
e0a6b1360d Hound is love, Hound is life 2017-09-21 19:18:39 +02:00
Luka Murn
a14457cba0 Add tests for create team service 2017-09-21 19:12:47 +02:00
zmagod
1a00b53034 adds user_team tests 2017-09-14 13:11:19 +02:00
zmagod
705d07f60e adds remove team action 2017-09-13 17:11:51 +02:00
zmagod
1b3b3dfea9 adds team members update role functionality 2017-09-12 17:30:13 +02:00
zmagod
1325732b0c adds specs for team controller actions 2017-08-30 16:18:21 +02:00