-
Notifications
You must be signed in to change notification settings - Fork 38
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
[WIP] Fix #1314 - security.txt full url in finding #1319
base: main
Are you sure you want to change the base?
[WIP] Fix #1314 - security.txt full url in finding #1319
Conversation
f1901cc
to
af11a77
Compare
The translation files are exclusively managed through the content repo. Updates directly to the translation files will be overwritten when we do a content update. I don't think you need to update django.po yourself, it's not in the repo, I am pretty sure it's generated in the Dockerfile. For the API, we also need to update openapi.yaml and bump the API version. |
1c08584
to
40bc16c
Compare
40bc16c
to
67179de
Compare
Signed-off-by: Sasha Romijn <github@mxsasha.eu>
67179de
to
bc0c08f
Compare
# ), | ||
migrations.RunSQL( | ||
sql=[ | ||
"ALTER TABLE checks_domaintestappsecpriv ADD COLUMN securitytxt_found_url VARCHAR(8000);", |
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.
Maybe we can keep AddField and only use custom artisanal SQL for the UPDATE?
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.
It would probably also fix the build failure, as the migrations framework now does not know this SQL adds that field.
Fixes #1314.
In develop I have to run
python3 manage.py migrate
, I thought db-migrate should do this automatically?I'm having some trouble with the translation files and how to update the django.po from the main.po (I know there is the content repo) by running
python3 bin/pofiles.py to_django
/python3 manage.py compilemessages
.The current content change is:
$ sed -r -i 's/(security.txt )(retrieved from|opgehaald van)( \{hostname)/\1\2 {url/'