Angela/protected links #15
Merged
y3332zha
merged 0 commits from angela/protected-links
into main
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'angela/protected-links'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Acceptance criteria:
added 5 commits
main
Compare with previous version
added 1 commit
Compare with previous version
Can you change this line back to one import per line (as below)? That way, if we need to add or delete an import, the diff will be cleaner.
Can you rename this to something more descriptive?
Before we add the new links, we want to clear the table of the old links.
I'm guessing you installed this using
pip install Flask-HTTPAuth
. In that case, in the venv, can you runpip freeze > requirements.txt
. What that does is add all the currently installedpip
modules to therequirements.txt
file, to setup on a different machine.Can you change the route to
/editor/links
? Also, you can remove theGET
from themethods
array from now, so that you can get rid of theif
statement in the functions.changed this line in version 4 of the diff
changed this line in version 4 of the diff
changed this line in version 4 of the diff
changed this line in version 4 of the diff
added 2 commits
08fc9eb3
- 1 commit from branchmain
Compare with previous version
added 1 commit
Compare with previous version
We should validate the request data, and send a 400 if it's in the wrong format.
Try grouping the delete and insert into one transaction, so if the insert fails, we don't lose data.
Look into inserting all of them in one sql command (using execute many probably)
Remove unused imports.
changed this line in version 6 of the diff
changed this line in version 6 of the diff
changed this line in version 6 of the diff
changed this line in version 6 of the diff
added 1 commit
Compare with previous version
What is this function for?
You should be generating the file after you update the DB. Right now, the JSON file will have the old data.
changed this line in version 7 of the diff
changed this line in version 7 of the diff
added 1 commit
Compare with previous version
added 4 commits
main
Compare with previous version