-
Notifications
You must be signed in to change notification settings - Fork 1
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
removed old method to generate xml files. Added template method #4
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
66ff06e
removed old method to generate xml files. Added template method
JJFlorian a56fee5
updated delivery test: added empty line at end
JJFlorian b2b5cbb
removed lxml from reqs
JJFlorian 8eda030
removed default project number. Should be implemented different
JJFlorian 317ddea
removed default project number. Should be implemented different
JJFlorian 88ef18e
added all model name tests
JJFlorian 046f774
changed name test
JJFlorian 224926b
fixed typehints
JJFlorian c09a921
added celery and redis to docker-compose
JJFlorian 14f7d29
forgot precommit again
JJFlorian 7e34c67
added all relevant GMN models for now
JJFlorian 7203902
added test to check xml generator error raise
JJFlorian 5f43269
added test to check xml generator error raise
JJFlorian f18dd3f
Null=trues back
JJFlorian 1f3cddb
added all gmn templates
JJFlorian 5115135
traceback -> logger
JJFlorian 8ac6bae
traceback -> logger
JJFlorian d05eb6e
specified xml generation error
JJFlorian 0f15346
removed redundant docker-compose elements
JJFlorian c237974
precommit
JJFlorian c920ce8
template for loop more clearly
JJFlorian ea6ac2f
returned json iso response
JJFlorian e9573f1
format
JJFlorian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<deleteRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_Closure gml:id="id_0001"> | ||
<endDateMonitoring> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</endDateMonitoring> | ||
</GMN_Closure> | ||
</sourceDocument> | ||
</deleteRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<deleteRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_MeasuringPoint gml:id="id_0001"> | ||
<eventDate> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</eventDate> | ||
<measuringPoint> | ||
<MeasuringPoint gml:id="id_0002"> | ||
<measuringPointCode>{{ sourcedocs_data.measuringPointCode }}</measuringPointCode> | ||
<monitoringTube> | ||
<GroundwaterMonitoringTube gml:id="id_0003"> | ||
<broId>{{ sourcedocs_data.broId }}</broId> | ||
<tubeNumber>{{ sourcedocs_data.tubeNumber }}</tubeNumber> | ||
</GroundwaterMonitoringTube> | ||
</monitoringTube> | ||
</MeasuringPoint> | ||
</measuringPoint> | ||
</GMN_MeasuringPoint> | ||
</sourceDocument> | ||
</deleteRequest> |
18 changes: 18 additions & 0 deletions
18
api/bro_upload/templates/delete_GMN_MeasuringPointEndDate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<deleteRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_MeasuringPointEndDate gml:id="id_0001"> | ||
<eventDate> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</eventDate> | ||
<measuringPointCode>{{ sourcedocs_data.measuringPointCode }}</measuringPointCode> | ||
</GMN_MeasuringPointEndDate> | ||
</sourceDocument> | ||
</deleteRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<deleteRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_TubeReference gml:id="id_0001"> | ||
<eventDate> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</eventDate> | ||
<measuringPoint> | ||
<MeasuringPoint gml:id="id_0002"> | ||
<measuringPointCode>{{ sourcedocs_data.evemeasuringPointCodentDate }}</measuringPointCode> | ||
<monitoringTube> | ||
<GroundwaterMonitoringTube gml:id="id_0003"> | ||
<broId>{{ sourcedocs_data.broId }}</broId> | ||
<tubeNumber>{{ sourcedocs_data.tubeNumber }}</tubeNumber> | ||
</GroundwaterMonitoringTube> | ||
</monitoringTube> | ||
</MeasuringPoint> | ||
</measuringPoint> | ||
</GMN_TubeReference> | ||
</sourceDocument> | ||
</deleteRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<insertRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_MeasuringPoint gml:id="id_0001"> | ||
<eventDate> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</eventDate> | ||
<measuringPoint> | ||
<MeasuringPoint gml:id="id_0002"> | ||
<measuringPointCode>{{ sourcedocs_data.evenmeasuringPointCodetDate }}</measuringPointCode> | ||
<monitoringTube> | ||
<GroundwaterMonitoringTube gml:id="id_0003"> | ||
<broId>{{ sourcedocs_data.broId }}</broId> | ||
<tubeNumber>{{ sourcedocs_data.tubeNumber }}</tubeNumber> | ||
</GroundwaterMonitoringTube> | ||
</monitoringTube> | ||
</MeasuringPoint> | ||
</measuringPoint> | ||
</GMN_MeasuringPoint> | ||
</sourceDocument> | ||
</insertRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<insertRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_TubeReference gml:id="id_0001"> | ||
<eventDate> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</eventDate> | ||
<measuringPoint> | ||
<MeasuringPoint gml:id="id_0002"> | ||
<measuringPointCode>{{ sourcedocs_data.measuringPointCode }}</measuringPointCode> | ||
<monitoringTube> | ||
<GroundwaterMonitoringTube gml:id="id_0003"> | ||
<broId>{{ sourcedocs_data.broId }}</broId> | ||
<tubeNumber>{{ sourcedocs_data.tubeNumber }}</tubeNumber> | ||
</GroundwaterMonitoringTube> | ||
</monitoringTube> | ||
</MeasuringPoint> | ||
</measuringPoint> | ||
</GMN_TubeReference> | ||
</sourceDocument> | ||
</insertRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<moveRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_Closure gml:id="id_0001"> | ||
<endDateMonitoring> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</endDateMonitoring> | ||
</GMN_Closure> | ||
</sourceDocument> | ||
<dateToBeCorrected> | ||
<brocom:date>{{ sourcedocs_data.dateToBeCorrected }}</brocom:date> | ||
</dateToBeCorrected> | ||
</moveRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<moveRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_MeasuringPoint gml:id="id_0001"> | ||
<eventDate> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</eventDate> | ||
<measuringPoint> | ||
<MeasuringPoint gml:id="id_0002"> | ||
<measuringPointCode>{{ sourcedocs_data.measuringPointCode }}</measuringPointCode> | ||
<monitoringTube> | ||
<GroundwaterMonitoringTube gml:id="id_0003"> | ||
<broId>{{ sourcedocs_data.broId }}</broId> | ||
<tubeNumber>{{ sourcedocs_data.tubeNumber }}</tubeNumber> | ||
</GroundwaterMonitoringTube> | ||
</monitoringTube> | ||
</MeasuringPoint> | ||
</measuringPoint> | ||
</GMN_MeasuringPoint> | ||
</sourceDocument> | ||
<dateToBeCorrected> | ||
<brocom:date>{{ sourcedocs_data.dateToBeCorrected }}</brocom:date> | ||
</dateToBeCorrected> | ||
</moveRequest> |
21 changes: 21 additions & 0 deletions
21
api/bro_upload/templates/move_GMN_MeasuringPointEndDate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<moveRequest xmlns="http://www.broservices.nl/xsd/isgmn/1.0" | ||
xmlns:brocom="http://www.broservices.nl/xsd/brocommon/3.0" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.broservices.nl/xsd/isgmn/1.0 https://schema.broservices.nl/xsd/isgmn/1.0/isgmn-messages.xsd"> | ||
<brocom:requestReference>{{ metadata.requestReference }}</brocom:requestReference> | ||
<brocom:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</brocom:deliveryAccountableParty> | ||
<brocom:broId>{{ metadata.broId }}</brocom:broId> | ||
<brocom:qualityRegime>{{ metadata.qualityRegime }}</brocom:qualityRegime> | ||
<correctionReason codeSpace="urn:bro:gmn:CorrectionReason">{{ metadata.correctionReason }}</correctionReason> | ||
<sourceDocument> | ||
<GMN_MeasuringPointEndDate gml:id="id_0001"> | ||
<eventDate> | ||
<brocom:date>{{ sourcedocs_data.eventDate }}</brocom:date> | ||
</eventDate> | ||
<measuringPointCode>{{ sourcedocs_data.measuringPointCode }}</measuringPointCode> | ||
</GMN_MeasuringPointEndDate> | ||
</sourceDocument> | ||
<dateToBeCorrected> | ||
<brocom:date>{{ sourcedocs_data.dateToBeCorrected }}</brocom:date> | ||
</dateToBeCorrected> | ||
</moveRequest> |
Oops, something went wrong.
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.
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.
Als een error voorkomt, heeft het dan specifiek met deze foutmelding te maken?