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

Implement a RegEx Expression to Check Uploaded File Names #22

Open
Alex-Yarkosky opened this issue Apr 11, 2019 · 7 comments
Open

Implement a RegEx Expression to Check Uploaded File Names #22

Alex-Yarkosky opened this issue Apr 11, 2019 · 7 comments
Assignees
Labels
enhancement New feature or request feature Changes an existing feature help wanted Extra attention is needed
Milestone

Comments

@Alex-Yarkosky
Copy link
Collaborator

Alex-Yarkosky commented Apr 11, 2019

In order to automatically check the format of the name of the files being uploaded instead of just having users check that as a part of the "DO list". We should look into what regex command we can use for detecting if the file name is indeed in the desired form and be able to use in the program for checking it immediately after the file is uploaded upon the completion of all items of the checklists.

@Alex-Yarkosky Alex-Yarkosky added enhancement New feature or request help wanted Extra attention is needed labels Apr 11, 2019
@Alex-Yarkosky Alex-Yarkosky added this to the Week of 4/15 milestone Apr 11, 2019
@Alex-Yarkosky Alex-Yarkosky self-assigned this Apr 11, 2019
@Alex-Yarkosky
Copy link
Collaborator Author

@finneyj2 please let me know, as soon as you can, what the format the uploaded files should have for their names. Thanks in advance!

@Alex-Yarkosky
Copy link
Collaborator Author

This website, will be able to help with the generation of the regex expression that we will use.

@finneyj2 finneyj2 self-assigned this Apr 11, 2019
@finneyj2
Copy link
Collaborator

finneyj2 commented Apr 11, 2019

The name format should be: Naming Files must follow the protocol below:
FACULTYLASTNAME_IRBPROPOSAL_ACADEMICYEAR_TWO-WORDDESCRIPTOR
(e.g. JONES_IRBPROPOSAL_2017_FOOD-SURVEY)

Completed applications should be submitted to rbowden@allegheny.edu as pdf documents.

@shafferz
Copy link
Contributor

I believe the following would be the regular expression for the above given naming constraints:

[A-Z]+\_[A-Z]+\_[0-9]{4}\_[A-Z]+\-[A-Z]+

@Alex-Yarkosky
Copy link
Collaborator Author

Alex-Yarkosky commented Apr 17, 2019

Updated expression to force IRBPROPOSAL to be exact:

[A-Z]+\_IRBPROPOSAL+\_[0-9]{4}\_[A-Z]+\-[A-Z]+

@shafferz shafferz changed the title Come up with regex expression to check uploaded file names Implement a RegEx Expression to Check Uploaded File Names Apr 17, 2019
@shafferz
Copy link
Contributor

Cool, I've updated the Issue title and body to reflect what we still need to close this issue.

@shafferz shafferz added the feature Changes an existing feature label Apr 17, 2019
@Alex-Yarkosky
Copy link
Collaborator Author

@shafferz @finneyj2 @durcij @ZachAndrews98 has this issue been handled or is it being handled in one of the branches currently being worked on so that code checks the file name of the file being uploaded?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature Changes an existing feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants