This repository was archived by the owner on Jan 14, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
WORK IN PROGRESS - Show genotype parsing status to users #472
Open
tsujigiri
wants to merge
29
commits into
openSNP:master
Choose a base branch
from
tsujigiri:genotype-parsing-status
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
649dc73
Add `parse_status` to Genotype
tsujigiri f96250a
Validate `parse_status`
tsujigiri dff4341
Update parse status when parsing
tsujigiri cdeae98
Introduce ParseError
tsujigiri 06cde9e
Add TODO
tsujigiri 46f39f8
Add test for `parse_status` update in Preparsing
tsujigiri e87be90
Don't hit the database twice when creating Genotype
tsujigiri 21718c8
Remove unneded `=> e`
tsujigiri e656ac0
Add `parse_error_message` to Genotype
tsujigiri 00aeada
WIP
tsujigiri 98d5d1e
Add a list of uploaded genotypes to user settings
tsujigiri a96183c
Revert "Add `parse_error_message` to Genotype"
tsujigiri 969aa5f
Order parse status cases logically
tsujigiri 4e38535
Add line-breaks
tsujigiri 13d2a3f
Fix indentation
tsujigiri 4074972
Adapt feature spec to use genotypes list
tsujigiri 87dcb06
Don't delete genotype on error in Preparsing
tsujigiri bd041af
Move genotype delete button to user's genotypes table
tsujigiri 713c551
fixup! Don't delete genotype on error in Preparsing
tsujigiri 83fd9c8
Refactor download and delete buttons
tsujigiri 2e49e8e
Don't retry parsing
tsujigiri 1fbbdec
Use i18n for table headers
tsujigiri 1bfc9f2
Add button for uploading new genotype
tsujigiri 1165df8
Add info on what to do when the parsing errored
tsujigiri d1d916d
Use warning label for "parsing" status
tsujigiri a769713
Switch to Chrome for feature specs
tsujigiri f87ecc0
Only show successfully parsed genotypes
tsujigiri 62c9063
Hound happiness 🐶
tsujigiri c49f373
Merge branch 'master' into genotype-parsing-status
tsujigiri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,3 +28,7 @@ Style/FrozenStringLiteralComment: | |
|
|
||
| Metrics/LineLength: | ||
| Max: 100 | ||
|
|
||
| Metrics/BlockLength: | ||
| Exclude: | ||
| - 'spec/**/*.rb' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ addons: | |
| apt: | ||
| packages: | ||
| - libhiredis-dev | ||
| chrome: stable | ||
| postgresql: '9.3' | ||
| services: | ||
| - redis-server | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| module UsersHelper | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing magic comment # frozen_string_literal: true.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ |
||
| def genotype_parse_status_label(parse_status) | ||
| label_class = case parse_status | ||
| when 'queued' then 'label-default' | ||
| when 'parsing' then 'label-warning' | ||
| when 'done' then 'label-success' | ||
| when 'error' then 'label-danger' | ||
| end | ||
| content_tag('span', parse_status, class: "label #{label_class}") | ||
| end | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing magic comment # frozen_string_literal: true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅