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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Fixed deleting members with email disabled #19222

Merged
merged 2 commits into from Dec 4, 2023

Conversation

SimonBackx
Copy link
Contributor

@SimonBackx SimonBackx commented Dec 4, 2023

refs https://ghost.slack.com/archives/CTH5NDJMS/p1701688836406919

Deleting members with email disabled, results in deleting all members due to a broken NQL filter.

The filter (email_disabled:1) results in selecting all members because of the surrounding brackets, which cause a yg filter to be generated by NQL which is not supported by code that handles the Mongo filters.

This is a quick fix to reduce damage, this will need a proper fix in NQL / lower level.

refs https://ghost.slack.com/archives/CTH5NDJMS/p1701688836406919

Deleting members with email disabled, results in deleting all members due to a broken NQL filter.

The filter `(email_disabled:1)` results in selecting all members because of the surrounding brackets, which cause a `yg` filter to be generated by NQL which is not supported by code that handles the Mongo filters.
@github-actions github-actions bot added the affects:admin Anything relating to Ghost Admin label Dec 4, 2023
@SimonBackx SimonBackx changed the base branch from main to v5.75.1 December 4, 2023 13:39
@SimonBackx SimonBackx merged commit e65ae20 into TryGhost:v5.75.1 Dec 4, 2023
18 checks passed
@SimonBackx SimonBackx deleted the fix-yg-filter branch December 4, 2023 14:07
SimonBackx added a commit that referenced this pull request Dec 4, 2023
refs https://ghost.slack.com/archives/CTH5NDJMS/p1701688836406919

Deleting members with email disabled, results in deleting all members
due to a broken NQL filter.

The filter `(email_disabled:1)` results in selecting all members because
of the surrounding brackets, which cause a `yg` filter to be generated
by NQL which is not supported by code that handles the Mongo filters.

This is a quick fix to reduce damage, this will need a proper fix in NQL
/ lower level.
yunaycompany pushed a commit to yunaycompany/Ghost that referenced this pull request Dec 6, 2023
refs https://ghost.slack.com/archives/CTH5NDJMS/p1701688836406919

Deleting members with email disabled, results in deleting all members
due to a broken NQL filter.

The filter `(email_disabled:1)` results in selecting all members because
of the surrounding brackets, which cause a `yg` filter to be generated
by NQL which is not supported by code that handles the Mongo filters.

This is a quick fix to reduce damage, this will need a proper fix in NQL
/ lower level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:admin Anything relating to Ghost Admin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant