Skip to content
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

Prevent deleted harvesters from running until purged (fix #2185) #2209

Merged
merged 4 commits into from Jun 25, 2019
Merged

Prevent deleted harvesters from running until purged (fix #2185) #2209

merged 4 commits into from Jun 25, 2019

Conversation

noirbizarre
Copy link
Contributor

This PR prevent deleted harvester from running until they are purged.

The purge have been named purge-harvesters to follow the convention.

Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don’t we need an UI fix on the harvester to show it’s been deleted? I know it’s visible on the list but not on the details page AFAIK.

Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also delete the associated harvest jobs? https://github.com/opendatateam/udata/blob/master/udata/harvest/actions.py#L135

@noirbizarre
Copy link
Contributor Author

I kept the current behavior (https://github.com/opendatateam/udata/blob/master/udata/harvest/models.py#L162): only nullify the source to keep the history. But I can change that, so WDT ?

@noirbizarre
Copy link
Contributor Author

Updated:

  • fixed the missing "deleted" badge in the harvest admin view
  • delete jobs when purging sources

CHANGELOG.md Outdated Show resolved Hide resolved
@noirbizarre noirbizarre merged commit 3900ac2 into opendatateam:master Jun 25, 2019
@noirbizarre noirbizarre deleted the gh2185-fix-harvester-deletion branch June 25, 2019 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants