Releases: UserOfficeProject/user-office-core
Releases · UserOfficeProject/user-office-core
Release v5.24.0
5.24.0 (2023-07-05)
Features
- Added new Graphql query client for fetching blank questionary steps by Call ID. Earlier we were using template ID to fetch the data, but now we need to use callID, since the new component Instrument picker need the callId to fetch all the call's instruments in the backend. (3c767f2)
- Adding Question Datatype Generics (05e86cd)
- API for get Instruments done. Validation library for Instrument picker in the front end added. (4502714)
- Avoided using datasource inside model. Instead passing the function as a callback to a model that does the data source operation. (c0d283a)
- Backend Set up for new Question type: Instrument Picker done. (de27d17)
- Code cleanup. Removing old code. (96d4362)
- Created new Graphql Query for fetching blank questionary steps with Call Id in Backend. (334d5f2)
- Created separate end point for fetching blank questionary steps using call id. This will help Instrument Picker component to load the call's instruments from the backend. (54b1a38)
- Display of Instrument Name in Proposal Summary done. (92493cd)
- Instrument assignment implemented via Event Bus. (ca5d5be)
- Instrument assignment logic optimised. (b9cc4e3)
- Instrument assignment to a Proposal, after the Instrument Picker Question has been answered is done. (c03e883)
- Instrument Picker Answer value translated to Instrument Name in the Proposal Report download PDF. (ab4d5f2)
- Optimisation: Passing user id as 0, if InstrumentPicker is not part of the answer, dont run the code. (f276ba2)
- Proposal Instrument Assignment logic implemented (6b35a51)
- Putting back code that was accidentally removed. (722d0f4)
- Putting back the code that has been removed accidentally. (52048d3)
- putting file back (f09709d)
- putting file back (8ecd2ca)
- Removed instrument test cases. (dcea14b)
- Removed instrument test cases. (1057894)
- Removing space (96b31b3)
- Search and Filter definition for Instrument Picker done. (3fa8944)
- Seeding Instrument Picker for test cases. (1f24c96)
- template export json updated with the new question type - instrument picker. (f931f56)
- template export json updated with the new question type - instrument picker. (85ce9d4)
- template export json updated with the new question type - instrument picker. (ac12042)
- Upgraded validation. (cabf6ca)
Bug Fixes
- A Proposal is linked with a Questionary. But the Questionary need not have a proposal. The logic has been slightly modified and the tests started to pass. (6c4ab28)
- Added mock for Event Bus for the test cases. We have never used mutations inside the events before the Instrument Picker Event came in, which calls the mutation and uses it. This is triggerring the test to fail, since the decorator @Eventmanager doesnt have a real value. We are mocking the @Eventmanager decorator so as to run the test successfully. (fd71d06)
- comment name (db01ae1)
- Correcting configurations with appropriate Question types. (ce380a3)
- fix console error for missing key in iterating element (#252) (4490ab7)
- fix empty PI details in Scientist proposal table (3cbbefb)
- fix empty PI details in Scientist proposal table (bfbe924)
- fix empty PI name in User Officer proposal table (c4d5bf8)
- fix empty PI name in User Officer proposal table (0e70743)
- fix some reivew comments where we can import directly from graphql-request (fec4e8b)
- introduce onBeforeSave (6833d53)
- only logout STFC users with a valid token (132f050)
- only logout STFC users with a valid token (3662215)
- remove unnecessary change (fc322f1)
- Removed unused args. (890eddc)
- stop STFC web service logout causing error (e02cb98)
- stop STFC web service logout causing error (c2b2511)
- type error. (63c9a4c)
- Type error. (941d34d)
- proposaldatasource.ts: correct typo in getByQuestionaryId method name to improve semantics and consistency across datasources (c84239e)
- uncomment tests (fc973df)
- uncomment tests (b4a0f41)
- use Instrument icon for consistency (51ccc24)
- ProposalDataSource.ts: fix typo in parameter name from qestionaryid to questionaryId for consistency and clarity (3fead3f)
Code Refactoring
- InstrumentMutations.ts: improve error message for when instrument is not found (ed63aac)
- postgres: remove unused import and he...
Release v5.23.0
5.23.0 (2023-06-15)
Features
- add EDITABLE_SUBMITTED_INTERNAL status external user tests (891e4cb)
- add external user proposal tests (9e438d7)
- Add localisation to chang instrument keyword (3f95db9)
- add stfc externalUser token for user2 for login (059a99e)
- Added jsonpath documentation modal for jsonpath field in dynamic multi choice question (e1100da)
- added jsonpath to dynamic multi choice questionary component (#192) (ef13922)
- make user selection modal more responsive and keep the actions visible in any width/height (0464837)
Bug Fixes
- deleted templates can be reset (fc235b9)
- discarded template changes persisting in view, created proposals not being reverted (57019f8)
- edges cases for resetting templates now covered (9ab7595)
- Fixes duplicate co-proposers logging error (2003f53), closes UserOfficeProject/user-office-project-issue-tracker#722
- make restting template cloning and creation work (ac587b1)
- refactor create and submit proposal with inactive internal call to edit and test (60c4c7a)
- removes unnecessary code for resetting templates (0085287)
- Set state logic fix done. (560ccdf)
- settings tests for propsal editable submitted internal status (661f4b6)
- split long running create clone and delete an internal proposal test (8292644)
- update inactive and active internal call test for internal and external user (9d1b79a)
Styles
- removes unnecessary whitespace (f4cb84d)
Tests
- adds extra check in generic template reset test (7d5cb1b)
- adds tests for resetting generic templates (617bd15)
- fix and add e2e tests for the improvements (693f545)
- fixes failing test and removes empty one (0fa0d73)
- fixes other failing tests (e9728d3)
Build Systems
- deps: bump concurrently from 7.6.0 to 8.0.1 (3d63ef4)
- deps: bump concurrently from 8.0.1 to 8.1.0 (2118bf8)
- deps: bump concurrently from 8.1.0 to 8.2.0 (5cc3931)
- deps-dev: bump lint-staged from 13.2.0 to 13.2.1 (ac61ba7)
- deps-dev: bump lint-staged from 13.2.1 to 13.2.2 (b2fd7cc)
Code Refactoring
Release v5.22.0
5.22.0 (2023-03-30)
Features
- add generic subtemplates create from previous coping tests (62a9bc8)
- add invite to proposal via code (fb3090d)
- invite codes (722f69d)
- use env variables for queuenames and exchanges and bind the queue to the exchange automatically (cc10f04)
Bug Fixes
- 834 Cloned proposals have no validation (a9f879a)
- add e2e tests (cfb7200)
- address for auth server (aa48ab3)
- cleanup unused implementation (a314786)
- configure auth server when configuring environment (#194) (c8fe437)
- fix e2e tests (8a34ee0)
- fix pod recreation (#167) (9af6969)
- fix test (c5f51b2)
- Fixes error on logout (ca1307b)
- make DEV_AUTH_SERVER_URL env variable instead of hardcoding in the tests (6331d8c)
- make login properly async (1e58ddf)
- merge conflict (da3d10e)
- Remove check for proposal id (531b90f)
- remove unused var (b45aab3)
- resolve some review comments (d31ae00)
- Try change syntax (1f725ad)
- Try change syntax (8625549)
- try fix muhammara version problem (b6a09cc)
- use auth server instead of email authorizer (10e4ec2)
- auth: logout not working, logs you back in again (c792f9f)
- when using IAM it is not possible to simply verify email and placeholder. (4b35ac4)
- review comments: skip message broker listener for STFC and remove TODO comment (74cbdb7)
Tests
- improve failing e2e test because of too long topic_title randomly generated (7edf72d)
Code Refactoring
Build Systems
Release v5.21.2
5.21.2 (2023-03-13)
Bug Fixes
- Clean up db patches initialised check (4407e9e)
- configure auth server when configuring environment (#191) (692bb1b)
- Make cloned proposal proposer id the same as source (a014330)
- return the updated user after external token login instead of the old version (e0982e2)
Build Systems
Release v5.21.1
Release v5.21.0
5.21.0 (2023-02-27)
Features
- adds test for duplicate co-proposer, fixes typo (438aff7)
- create a new questionary component that fetch options from external api (#172) (e5c3afb)
- Idle timeout warning (bf0e5a8), closes user-office-project-issue-tracker#791
- sending extra information in proposal message to create chatroom (#163) (7de4c8e)
Bug Fixes
- add instrument to msg for Queue.SCICAT_PROPOSAL (#171) (1a89269)
- fix deployment scripts (#182) (de8c8dc)
- fix pod recreation (#167) (be8affd)
- removes some test logging (d90318f)
- send to exchange instead of dirrect message queue (c930824)
- update message broker version (9650e53)
- update workflow from develop (#102) (366ef3b)
- user cannot select duplicate co-i to proposal, fixes typos (940ef9a)
- auth: logout not working, logs you back in again (abaa57b)
Build Systems
- deps-dev: bump lint-staged from 13.1.0 to 13.1.1 (62e3eaf)
Code Refactoring
Release v5.21.0-fix-deployment-scripts.0
5.21.0-fix-deployment-scripts.0 (2023-02-20)
Features
- adds test for duplicate co-proposer, fixes typo (438aff7)
- sending extra information in proposal message to create chatroom (#163) (7de4c8e)
Bug Fixes
- add instrument to msg for Queue.SCICAT_PROPOSAL (#171) (1a89269)
- add node version also for buildpush (26add6b)
- fix pod recreation (#167) (be8affd)
- removes some test logging (d90318f)
- update message broker version (9650e53)
- user cannot select duplicate co-i to proposal, fixes typos (940ef9a)
- auth: logout not working, logs you back in again (abaa57b)
- send to exchange instead of dirrect message queue (c930824)
Code Refactoring
Release v5.20.0
5.20.0 (2023-01-26)
Features
- 752 add factory proposal pdf download service for API token permission administration (4c6877c)
- 752 add proposal pdf download by key or id through token access (d3f7971)
- 752 add proposal pdf download tests for api token access (620998b)
- 752 add token access and user authentification to factory (056f7b4)
- 752 fix deep scan issue (09b097a)
- 752 fix deep scan issue in samples (399c3d7)
- 752 improve naming and imports (3804f36)
- 752 revert changes (724406f)
- 752 update proposal pdf download tests for api token access (6868107)
- 752 update error handling after permission failure (8b3e142)
- 752 update factory error message (1bf8a7e)
- 752 update factory services authorized decorator (1bc0abc)
- 752 update proposal api pdf download token access tests (295a29f)
- 752 update proposal api pdf download token access tests and improve variable naming in factory services (97f9e32)
- 752 update proposal api pdf download token access tests and improve variable naming in factory services (83c2ea5)
- 752 update proposal api pdf download token access tests and improve variable naming in factory services (3c8d434)
- 752 when downloading files logout user with invalid token (8e7a521)
- add reload button for template lists in call modal (#124) (1929cf3)
- add reopening of closed call to call update from extending external or internal datetime beyond current datetime (fa50b69)
- Added navigation link (#115) (726a937)
- added navigation link for selected template (#122) (98455cd)
- Adds back changing PI in frontend proposals tests. (94decc1)
- create new unit from question form (#119) (8596363)
- Group queries and mutations for better frontend organization. Add select all option and improve UI (5341e4d)
- Makes selecting a call when making a propsal always required. (8d4693d)
- Print logger messages to stdout in production (#123) (20c5010)
- Try to create POV for scheduler API access tokens (8273e3d)
Bug Fixes
- add ENVIRONMENT param (#89) (26bcad8)
- Add limit to template topic title length (de2770f)
- Add proposal_deleted event in the proposal_events (6ed64ad)
- bump version (4d961b2)
- click on empty space should not trigger url redirection (#161) (d97ab04)
- close icon is blocked by input field (a014583)
- e2e test fail (2587e9c)
- exposing getUserByOIDC endpoint (#117) (95da39a)
- Fix deprecated set-output warning in the actions (d8f43f8)
- Fixing dependabot PRs and branch names (8b6ae29)
- Fixing the state cleanup after modal close and cleaning some console warnings (f1e58b1)
- hide average score (826ecf6)
- make end call internal date track end call date when end call internal date field is hidden (626c10b)
- make settings update more resilient (#132) (3319401)
- make sure db is up and running before accessing it (#136) (243bc70)
- removed unnecessary space on title (9c2a287)
- Some modals missing close modal button (#116) (15370ea)
- trigger Jenkins only on develop (#101) (8fce2ad)
- update call edit cypress test to make dates more random (b221fd9)
- update proposal editable check for EDITABLE_SUBMITTED_INTERNAL status (74a7766)
- tests: fix date to be in the future (#126) (c9ea64c)
Build Systems
- deps: bump concurrently from 7.4.0 to 7.6.0 (d1fb8be)
- deps-dev: bump lint-staged from 10.5.4 to 13.1.0 (5fdc1f8)
Tests
- Add e2e test that covers the bugfix (073daa1)
- Add e2e test that covers the new proposal selection functionality (c91b3b2)
Code Refactoring
- Cleanup the react-cookie and cookie-parser. Use only express-jwt i...
Release v0.2.1
Release v0.2.0
0.2.0 (2022-10-21)
Features
- graphql: add proposalById and questionByNaturalKey queries (#712) (3a941c1)
- Handle scheduler events with the workflow engine. Upgrade some dependencies (07623dd)
- Introduce separate queues for every other app where we need to send messages (b00a763)
- auth: Implement OAuth with OpenId Connect authorization (#51) (0d62124)
Bug Fixes
- Add new status to the message that is sent to RabbitMQ (SWAP-2801) (20940ca)
- apps/user-office-backend/Dockerfile to reduce vulnerabilities (2d00240)
- apps/user-office-backend/Dockerfile.dev to reduce vulnerabilities (0c89e31)
- apps/user-office-backend/package.json & apps/user-office-backend/package-lock.json to reduce vulnerabilities (ab55d7d)
- apps/user-office-frontend/Dockerfile.dev to reduce vulnerabilities (a05ac98)
- balance load (325d64e)
- Fix e2e tests and improve the validation of a field (2305cc2)
- fix samples tests race condition (#82) (df9b5ef)
- import (b884ed3)
- linting (0eab1da)
- mockserver address (4cb8076)
- move ISIS specific logic up into derived class (e08b111)
- package.json & package-lock.json to reduce vulnerabilities (#724) (bfd2c5b)
- paths to generated sdk (08697a0)
- referencing the stfc script (0b6db15)
- regenerate package-lock (c330d54)
- remove unused var (002d81e)
- Send message back to the queues after workflow engine processes the messages received from the scheduler. Also try to fix e2e tests random failures (c357b43)
- swap scripts around for a moment for faster testing (ecc9621)
- test (13d975e)
- update duo validation (5a737f8)
- upgrade @faker-js/faker from 7.3.0 to 7.4.0 (7b899f5)
- upgrade @faker-js/faker from 7.4.0 to 7.5.0 (4614c30)
- upgrade axios from 0.26.1 to 0.27.2 (2d74617)
- upgrade soap from 0.40.0 to 0.45.0 (a5d5d1c)
- upgrade typescript from 4.7.4 to 4.8.2 (8bf87cc)
- upgrade typescript from 4.8.2 to 4.8.3 (6eeeabb)
- instrument availability time: Entering number grater than biggest 32-bit integer crashes the app (227487d)
Code Refactoring
- graphql: refactor getMetadata call (#985) (1c8ac45)
- graphql: refactor getMetadata endpoint to follow convention (#711) (c0de774)
- graphql: rename getPageContent to pageContent (#709) (d834b9d)
- graphql: rename pageContent and myInstruments (#984) (69e8086)
- graphql: Split getFields into countries and nationalities queries (#708) (5cb7fd0)
- graphql: Split getFields into countries and nationalities queries (#983) (d1f76ef)
- Change proposal submission notification message (c47c384), closes UserOfficeProject/user-office-project-issue-tracker#652
- Improve friendliness of proposal submission message (d820fce), closes UserOfficeProject/user-office-project-issue-tracker#652
- Improve readability of import (f3b1679), closes UserOfficeProject/user-office-project-issue-tracker#652
- make titles multiline, truncate long titles & fix tests (c60391a), closes UserOfficeProject/user-office-project-issue-tracker#239
- Use flat directory structure for emails (516bfe2)