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

Fix unblocking/unfiltering in elasticsearch #13

Open
jackrobison opened this issue Apr 1, 2022 · 2 comments
Open

Fix unblocking/unfiltering in elasticsearch #13

jackrobison opened this issue Apr 1, 2022 · 2 comments
Labels
area: elasticsearch type: bug Existing functionality is wrong or broken

Comments

@jackrobison
Copy link
Member

After abandoning a blocking/filtering channel, the blocked/filtered claims don't get unblocked/unfiltered.

Reported by @tzarebczan

@jackrobison jackrobison added type: bug Existing functionality is wrong or broken area: elasticsearch labels Apr 1, 2022
@shyba
Copy link
Member

shyba commented Apr 1, 2022

curl -X POST "localhost:9200/claims/_update_by_query?pretty" -H 'Content-Type: application/json' -d'
{
  "script": {
    "source": "ctx._source.censor_type=0; ctx._source.censoring_channel_id=null;",
    "lang": "painless"
  },
  "query": {
    "term": {
      "channel_id": "x"
    }
  }
}
'

this query was used to manually do it, we could use something similar but querying for another field

@tzarebczan
Copy link

It does resolve, just won't return in claim search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: elasticsearch type: bug Existing functionality is wrong or broken
Projects
None yet
Development

No branches or pull requests

3 participants