Skip to content
New issue

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

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

Already on GitHub? # to your account

[instrument_builder] ADDED: field warnings for maximum length in Instrument Builder module #8112

Merged

Conversation

satvik-tha-god
Copy link
Contributor

…t Builder

Brief summary of changes

  • Added field warnings for length for _status fields:
  • Added field warnings for length for all the fields
  • Minor spelling mistake fix

Testing instructions (if applicable)

  1. Go to /instrument_builder/#Build
  2. Check for warnings for input length greater than 57 for the following fields by clicking Add Row
    1. Data entry->Textbox->Question Name
    2. Data entry->Textarea->Question Name
    3. Data entry->Date->Question Name
    4. Data entry->Numeric->Question Name
  3. Check for warnings for input length greater than 64 for the rest of the Question Name and Question Text fields by clicking Add Row

Link(s) to related issue(s)

@christinerogers
Copy link
Contributor

Great stuff, Satvik! It would be great to have an idea of how the warnings will appear to the end user - could you kindly post a screenshot in this thread, showing the error message in context? Thanks, that would be really helpful in speeding this through the review process.

@satvik-tha-god
Copy link
Contributor Author

Great stuff, Satvik! It would be great to have an idea of how the warnings will appear to the end user - could you kindly post a screenshot in this thread, showing the error message in context? Thanks, that would be really helpful in speeding this through the review process.

@christinerogers Thanks! Here are the screenshots
Screenshot from 2022-06-14 01-50-55
Screenshot from 2022-06-14 01-50-39

Copy link
Contributor

@christinerogers christinerogers left a comment

Choose a reason for hiding this comment

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

Hi @satvik-tha-god thanks for this PR!
I've suggested edits for the error messages to let the user know directly what they should do (shorten it). Thanks Satvik for checking over the numbers I included.
@racostas - over to you to check if this satisfies the issue / all cases etc.

modules/instrument_builder/jsx/react.questions.js Outdated Show resolved Hide resolved
modules/instrument_builder/jsx/react.questions.js Outdated Show resolved Hide resolved
modules/instrument_builder/jsx/react.questions.js Outdated Show resolved Hide resolved
modules/instrument_builder/jsx/react.questions.js Outdated Show resolved Hide resolved
@racostas
Copy link
Contributor

Hi @satvik-tha-god,
Great work !!
Please address @christinerogers comments.
The unit test are falling due to code standard nonconformity. You will be able to identify the error entering in the failed test and searching for the error keyword in the output. For this case are simple ones. I attach a screenshot for reference.

image

satvik-tha-god and others added 6 commits June 14, 2022 12:51
Co-authored-by: christinerogers <christinerogers@users.noreply.github.com>
Co-authored-by: christinerogers <christinerogers@users.noreply.github.com>
Co-authored-by: christinerogers <christinerogers@users.noreply.github.com>
Co-authored-by: christinerogers <christinerogers@users.noreply.github.com>
@racostas racostas self-requested a review July 19, 2022 15:47
Copy link
Contributor

@racostas racostas left a comment

Choose a reason for hiding this comment

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

Hi @satvik-tha-god,

Two minor changes:

  1. The label of the question don't have to be restricted to 64 characters, just the field_name.
  2. You will find a test Plan on the module folder. Please let update it accordingly with this new feature to be tested.

@racostas
Copy link
Contributor

Not sure why but it seems some of the test got cancelled.

image

Please relaunch the jobs.

@racostas racostas added the Needs Work PR awaiting additional changes by the author or contains issues that the author needs to fix label Jul 28, 2022
@racostas
Copy link
Contributor

failing a the test suit, nevertheless I don't see direct relation avec this PR itself. What do you think @driusan ?

@racostas racostas removed the Needs Work PR awaiting additional changes by the author or contains issues that the author needs to fix label Aug 31, 2022
Copy link
Contributor

@christinerogers christinerogers left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

@christinerogers
Copy link
Contributor

christinerogers commented Sep 27, 2022

@racostas it looks like this is in your court to re-review, unless i'm reading it wrong?

Copy link
Contributor

@racostas racostas left a comment

Choose a reason for hiding this comment

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

Thank you @satvik-tha-god for those fixes.
I think the only thing missing is to update the modules/instrument_builder/test/TestPlan.md accordingly. Could you please take a look into it when you get a chance ?
I'm cc @christinerogers as she might want to take a look as well since she identified the original issue.

@racostas racostas added Needs Work PR awaiting additional changes by the author or contains issues that the author needs to fix GSOC Google Summer of Code related labels Oct 24, 2022
@driusan driusan merged commit 5e28a5c into aces:main Dec 7, 2022
@driusan
Copy link
Collaborator

driusan commented Dec 7, 2022

I think we can merge this and then send another PR to fix the test plan.

driusan pushed a commit that referenced this pull request Dec 16, 2022
…d by PR#8112. (#8281)

This is a Test Plan updates for the Instrument Builder module after changes introduced by PR #8112

Resolves #8257
@ridz1208 ridz1208 added this to the 25.0.0 milestone Mar 6, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
GSOC Google Summer of Code related Needs Work PR awaiting additional changes by the author or contains issues that the author needs to fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[InstrBuilder] check and warn if fieldname is too long (including _status fields)
5 participants