Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: assign instruments to Xpress proposals #824

Merged
merged 9 commits into from
Nov 1, 2024
Merged

Conversation

deepaksftc
Copy link
Contributor

@deepaksftc deepaksftc commented Oct 18, 2024

Description

This pull request introduces the feature of assigning instruments to Xpress proposals.

Motivation and Context

This change was required to provide the ability for users to assign specific instruments to Xpress proposals, enhancing the granularity and specificity of proposal handling.

Changes

  1. Added a checkProposalsHasTechniques method in TechniqueDataSource, TechniqueDataSourceMock, and PostgresTechniqueDataSource to verify if proposals have techniques.
  2. Implemented a new mutation assignXpressProposalsToInstruments in InstrumentMutations and AssignProposalsToInstrumentsMutation to assign instruments to proposals.
  3. Added a check in AssignProposalsToInstrumentsMutation to validate if the proposals are Xpress before assigning instruments.
  4. Added e2e tests in xpress.cy.ts to verify the new functionality.
  5. Updated the frontend component XpressProposalTable.tsx to include the new feature of assigning instruments to proposals.

How Has This Been Tested?

Fixes Issue

UserOfficeProject/issue-tracker#1137

Depends On

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

image

@deepaksftc deepaksftc marked this pull request as ready for review October 18, 2024 10:21
@deepaksftc deepaksftc requested a review from a team as a code owner October 18, 2024 10:21
@deepaksftc deepaksftc requested review from EdwardHaynes, a team, bolmsten, simonfernandes and mutambaraf and removed request for a team October 18, 2024 10:21
@deepaksftc deepaksftc requested review from a team and Junjiequan and removed request for a team October 18, 2024 10:24
@janosbabik janosbabik requested review from janosbabik and removed request for Junjiequan October 21, 2024 09:05
@deepaksftc
Copy link
Contributor Author

Hi @janosbabik, could you please have a look at this PR and suggest if there is any changes required.

@deepaksftc deepaksftc merged commit 87f9201 into develop Nov 1, 2024
19 checks passed
@deepaksftc deepaksftc deleted the 1137-dev branch November 1, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants