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

370 - Add getDatasetState helper for the dataset lifecycle #373

Open
wants to merge 4 commits into
base: nozomione/361-decouple-format-experiments-from-dataset-manager
Choose a base branch
from

Conversation

nozomione
Copy link
Member

Issue Number

Epic: #358

Closes #370

Merged into the feature branch: feature/epic-refactor-dataset-page-data-handling
Base & target branch: nozomione/361-decouple-format-experiments-from-dataset-manager

Purpose/Implementation Notes

I've add helpers/getDatasetState to facilitate UI rendering and replaced the local variables / destructuring of dataset from the components with this new helper.

Types of changes

  • Refactor (addresses code organization and design mentioned in corresponding issue)

Functional tests

N/A

Checklist

  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Screenshots

N/A

Copy link

vercel bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
refinebio-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 3:47pm

@nozomione nozomione changed the base branch from dev to nozomione/361-decouple-format-experiments-from-dataset-manager September 27, 2024 21:07
@nozomione nozomione self-assigned this Sep 27, 2024
@nozomione nozomione marked this pull request as ready for review September 27, 2024 21:09

const isExpired = moment(expiredOn).isBefore(Date.now())
const isComplete = isProcessed && isAvailable && success // successfully processed
const isProcessingError = success === false // failed during processing
Copy link
Member Author

Choose a reason for hiding this comment

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

I am thinking about renaming this to hasProcessingError. I originally matched it with other property names (using the is prefix), but I think renaming might be a better fit!

…per and adjust the codebase, use getDatasetState helper to show DownloadDatasetButton for non-errored unprocessed dataset, use getDatasetState helper to show DatasetRegenerateDownloadOptionsForm and remove its 'show' prop
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.

Add getDatasetState helper for the dataset lifecycle
1 participant