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
Suppression des ressources communautaires orphelines depuis l'application #1685
Merged
Merged
Changes from 5 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6b14acf
create CommunityResourcesCleaner module
fchabouis 4659dc3
add some tests to list orphan resources
fchabouis 4eb73b1
move transport publisher label to config
fchabouis b64fc0b
http 204 (no content) is also ok
fchabouis 3929330
add the delete method to datagouvfr client api
fchabouis 6bfdfc9
tricky code simplification
fchabouis 32e4aa6
theoritically "delete" could also yield a 202 resp
fchabouis 56253b2
format
fchabouis fdc5964
function to create headers
fchabouis 1f52629
add the "delete" part in the cleaning process
fchabouis 6259538
create A Mock for Datagouvfr.Client.CommunityResources
fchabouis 843513a
say in config which implementation of CommunityResources to use
fchabouis 6b32f49
typo
fchabouis 04161de
test the delete part of the orphan cleaning
fchabouis e70161e
add a task in the scheduler for orphans
fchabouis 352ce12
Merge branch 'master' into resources_cleanup
fchabouis baf0fb2
update tests of orphan detection
fchabouis 0c3bd25
format file
fchabouis 9d5f64e
specify async true for the cleaner tests
fchabouis 56160ef
Merge remote-tracking branch 'origin/resources_cleanup' into resource…
fchabouis 718656e
try with async false
fchabouis ac35037
its not a Mock, its a Stub
fchabouis 4d9102f
add Mox dependency in datagouvfr
fchabouis a7a5774
define a Mock for CommunityResource module
fchabouis fe36a17
use the CommunityResources stub here
fchabouis 4b019e6
Use CommunityResources.Mock for backoffice testing
fchabouis db64dc5
use the stub for the test
fchabouis 3d1748d
add an insert on the dataset_id
fchabouis 7339567
use CommunityResources stub by default for some tests
fchabouis c9ea239
set uniform case for Datagouvfr module
fchabouis f0dc7d5
Merge branch 'master' into resources_cleanup
fchabouis 6c88efe
log succes and errors counts
fchabouis 292535a
datagouv_id should be passed for deletion
fchabouis 2171a3a
update the tests
fchabouis 588f5d9
correct bug to get error_n and ok_n values
fchabouis 7422fe6
Merge branch 'master' into resources_cleanup
fchabouis File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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 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 @@ | ||
Mox.defmock(Datagouvfr.Client.CommunityResources.Mock, for: Datagouvfr.Client.CommunityResources) |
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
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.
Attention ces références en tant que module ça va marcher dans les "exs" mais la prochaine version de Credo va bloquer ces appels. Il faut remplacer par quelque chose qui n'est pas évalué à la compilation.