-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add new surge alert filters to API #1975
Comments
Theoretically these fields are in the serializer: https://github.com/IFRCGo/go-api/blob/develop/notifications/serializers.py#L20 |
@szabozoltan69 thanks Zoltan, I see them in there too, but I can't seem to filter by them. For example, if I run |
Ok, so we should append the needed fields to the filterset, to this: |
Is it ok if I add these? |
is it possible to have it filter those molnix_tags too? or is the structure too complex? |
I do it also, ok. :-) |
FYI: Renamed the title of this ticket to "Add new surge alert filters to API" instead of "Add new surge alert fields to API" to make the requirement a bit clearer. |
In local tests filtering is ok:
|
Deployed to Staging. |
@JonathanGarro, would you mind to check, if this works as you expected? |
thanks @tovari - i just tested a few and it seems to work great! huge thanks to the team, this will be extremely useful! i appreciate y'all. |
We added a bunch of surge alert fields earlier this year from RRMS. I'm hoping we can make those accessible via the API for end users like myself. Per the documentation, it looks like there are several missing from what we added (as well as some that I believe were already there), including:
start
(as well asstart__gt
,__gte
,__lt
,__lte
)molnix_status
message
country
molnix_tags
- these have the new "groups" key that contain a bunch of keys i'd love to have access to, such asROLES
,LANGUAGE
,SECTOR
,rotation
, etc.The text was updated successfully, but these errors were encountered: