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

Fix PacBio pool edit data loading #1450

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

BenTopping
Copy link
Collaborator

Changes proposed in this pull request

  • Adds DataFetcher to Pacbio Pool Edit page to standardise data fetching and hopefully prevent race condition causing CI failures.
  • Small tweak to spinner style

Instructions for Reviewers

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

@BenTopping BenTopping requested a review from stevieing December 14, 2023 11:08
stevieing
stevieing previously approved these changes Dec 14, 2023
Copy link
Collaborator

@stevieing stevieing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the discussion about using params is an interesting one. Could we use types?

this.$store.commit('traction/pacbio/poolCreate/clearPoolData')
await this.fetchPacbioTagSets().then(this.alertOnFail)

// We should come up with a better solution to identify 'new' pools
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a type?

Copy link
Collaborator Author

@BenTopping BenTopping Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was an old comment I copied over, which I think i wrote, but I think this pattern is actually fine. But there is an issue here because if we use a random string in the URL, instead of new, it will try and look for a pool with that string, as we are only checking its not 'new'. Doesn't seem very safe. I don't have time to look before my leave but happy for you to have a go if you want, if not will look in the new year.

@BenTopping BenTopping self-assigned this Dec 14, 2023
@stevieing
Copy link
Collaborator

stevieing commented Dec 14, 2023 via email

@BenTopping BenTopping merged commit 82d0b27 into develop Dec 14, 2023
4 checks passed
@BenTopping BenTopping deleted the fix-pacbio-pool-edit-data-loading branch December 14, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants