-
Notifications
You must be signed in to change notification settings - Fork 4
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
2818 Update Indicator - 2 #2899
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2899 +/- ##
========================================
Coverage 93.48% 93.48%
========================================
Files 269 269
Lines 6234 6234
Branches 523 523
========================================
Hits 5828 5828
Misses 314 314
Partials 92 92
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
@ADPennington all good to go |
apologies for the delay in review. some conflicts here @atrimpe. I can review as soon as these are resolved. |
@ADPennington all good |
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.
@atrimpe this is in good shape in terms of rejecting and not parsing files with the incorrect update indicator, but a couple of nits below.
- the error seems to be raised as a category 2 error instead of a category 1 error (which is one of the ACs). It appears that this is because of how the code is organized, where most of the elements in the header records are checked as
postparsing_validators
. If true, I think this is okay for now. - the error message on this could be better. It is not clear what the problem is (e.g.
N does not match D.
). @reitermb what do you think? If we do not make a custom validator for this field, we'll need to be prepared with guidance in the TDP Knowledge Center, because this is a big change for STTs, one that will likely yield questions.
testing notes here
qasp approval on hold until @reitermb weighs in.
I think one light tweak we could add here is Re: The Knowledge Center I do think it's worth reframing this page around Submission Requirements more broadly—or adding a submission requirements page that will further link to that existing guide. #2847 could also link to guidance around this in the section that breaks down what the header/trailer are. Thoughts on this @ADPennington ? |
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.
LGTM!
thanks @reitermb -- i think this would require a custom validator. we're currently using the Also @reitermb i agree that we can plan for #2847 to handle guidance around this. I suspect that this PR will in the release for next week, will 2847 be ready by then? or will we have a draft hackmd ready? |
My goal is to have the content hack.md in review early next week before I'm partially OOO later that week/the next. My stretch goal will include the PR as well but depends on some in flight roadmap/backlog work with Rob & Andrew and tying up the submission history content PR (I'm shooting to have requested revisions on that in tomorrow). |
@ADPennington, @reitermb, have a look at what I did wrt the |
@elipe17 @raftmsohani terraform pipeline issue during deployment. |
@@ -117,12 +117,12 @@ | |||
Field( | |||
item="10", | |||
name="update", | |||
friendly_name="update", | |||
friendly_name="update indicator", |
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.
@elipe17 thank you for this! HEADER update indicator: N does not match D.
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.
@atrimpe @elipe17 @reitermb this is approved and ready to merge.
one note: the AC on this ticket was to raise a cat 1 (pre-parsing error) when update indicator isnt D. technically, this raised a cat 2 error, which i think is okay because: (1) error types will be removed from the error feedback report as part of #2897 and (2) the expected behavior of a cat 1 error (which is to not process files with incorrect header) is implemented . 🚀
test notes here
Summary of Changes
Altered header to only allow D, updated test data files, added test
Pull request closes #2818
How to Test
List the steps to test the PR
These steps are generic, please adjust as necessary.
Deliverables
More details on how deliverables herein are assessed included here.
Deliverable 1: Accepted Features
Checklist of ACs:
it shows as a cat 2 error but functions as a cat 1 error insofar as the data is not parsed
lfrohlich
and/oradpennington
confirmed that ACs are met.Deliverable 2: Tested Code
CodeCov Report
comment in PR)CodeCov Report
comment in PR)Deliverable 3: Properly Styled Code
Deliverable 4: Accessible
iamjolly
andttran-hub
using Accessibility Insights reveal any errors introduced in this PR?Deliverable 5: Deployed
Deliverable 6: Documented
Deliverable 7: Secure
Deliverable 8: User Research
Research product(s) clearly articulate(s):