removes 'source_v2_url' field from SI metadata endpoint #5926
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
Super-closes #5731
Removes the v2 source URL from the Source Interface
/metadata
endpoint.Testing
Dev
make dev
and visit http://localhost:8080/metadatav2_source_url
field is not presentv3_source_url
field is present with a null valuedocker exec -it securedrop-dev-0 bash
/var/lib/securedrop/source_v3_url
containing a valid v3 address (56-char.onion, no protocol)/var/lib/securedrop/source_v2_url
containing a valid v2 address (16-char.onion no protocol)v2_source_url
field is not presentv3_source_url
field is present with the value from thesource_v3_url
file.Deployment
Deployed with app-code .deb install/upgrade.
Checklist
If you made changes to the server application code:
make lint
) and tests (make test
) pass in the development containerIf you added or removed a file deployed with the application:
If you made non-trivial code changes:
Choose one of the following: