Details
-
Type: Task
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Story Points:3
-
Epic Link:
-
Sprint:Spring 6 2021 May 31 - June 11, Summer 1 2021 Jun 14 - Jun 25, Summer 2 2021 Jun 28 - Jul 9
Description
Within Django App 1 - Link Generator the first step is to ensure that whatever link the user inputs is actually a valid track hub link. Otherwise, they will simply be met with a message on the entry screen stating that their URL is invalid.
Attachments
Issue Links
- is blocked by
-
IGBF-2873 Implement Trackhub Application 1 - QuickLoad Link Generator
- Closed
Progress report:
I've spent some time retrofitting some of my old code and updating the commenting on it to better fit the new forms.py and validation methods. However, I've run into something of a snag that I'm working through. Django has multiple built-in validation methods for user input and we will be using the URL verification to ensure the trackhub is an actual link (as opposed to something like a single word), as well as support for custom verification which we will be using to ensure the user's URL is pointing to the hub.txt file (is the ending of the link /hub.txt?).
The issue is the validate_trackhub_url(value) function takes in a value as a parameter and while I have linked the user input field to send it to a variable, for some reason, even when I state the verification on top of the variable th_link, it will not validate.
Will continue investigating but for now, aside from that, things are going rather well!