Skip to content

Disable OpenSearch add-ons.#13259

Merged
EnTeQuAk merged 4 commits intomasterfrom
12463-disable-opensearch
Jan 16, 2020
Merged

Disable OpenSearch add-ons.#13259
EnTeQuAk merged 4 commits intomasterfrom
12463-disable-opensearch

Conversation

@EnTeQuAk
Copy link
Copy Markdown
Contributor

I didn't just add it to the delete_obsolete_addons task to be able to
run it independently whenever we want to (afaik obsolete add-ons are
already hard deleted anyway).

Fixes mozilla/addons#7005

@EnTeQuAk EnTeQuAk requested a review from eviljeff January 14, 2020 16:29
I didn't just add it to the `delete_obsolete_addons` task to be able to
run it independently whenever we want to (afaik obsolete add-ons are
already hard deleted anyway).

Fixes #12463
@EnTeQuAk EnTeQuAk force-pushed the 12463-disable-opensearch branch from 651f0b1 to f637a38 Compare January 14, 2020 16:30
},
'disable_opensearch_addons': {
# We're re-using the `delete_addons` method but don't allow for hard
# deletes
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why don't we allow for hard deletes? At some point in the next few months we will want to hard-delete all the opensearch addons we'll be soft deleting this time. (And any soft-deleted opensearch add-ons in the database currently).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It might be me being overly cautious but we may want to hard delete them at some point but not in the immediate future and we'll soft-delete first. That's why I separated them, not sure the cautiousness is appropriate.

Happy to change that if you think it isn't.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I understand why we don't want to hard-delete them now, but I don't understand why you explicitly don't want the --with_deleted option available, so they can be hard deleted in the future without a further patch.

@EnTeQuAk
Copy link
Copy Markdown
Contributor Author

I added the with-deleted option as requested.

@EnTeQuAk EnTeQuAk requested a review from eviljeff January 16, 2020 05:05
@EnTeQuAk EnTeQuAk merged commit 0ac3fba into master Jan 16, 2020
@EnTeQuAk EnTeQuAk deleted the 12463-disable-opensearch branch January 16, 2020 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable all OpenSearch add-ons

2 participants