Skip to content

Api: Add event severity details on appeal api#2685

Draft
sudip-khanal wants to merge 2 commits intoproject/surge-eru-updatefrom
feat/add-event-severity-level-on-appeal-api
Draft

Api: Add event severity details on appeal api#2685
sudip-khanal wants to merge 2 commits intoproject/surge-eru-updatefrom
feat/add-event-severity-level-on-appeal-api

Conversation

@sudip-khanal
Copy link
Contributor

Changes

  • Add event details like id,name severity level on appeal api

Checklist

Things that should succeed before merging.

  • Updated/ran unit tests
  • Updated CHANGELOG.md

Release

If there is a version update, make sure to tag the repository with the latest version.

"name",
"ifrc_severity_level",
"ifrc_severity_level_display",
"disaster_start_date",
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if we need this.
We might need when severity level was changed.

country = MiniCountrySerializer(read_only=True)
dtype = DisasterTypeSerializer(read_only=True)
region = RegionSerializer(read_only=True)
event = EventMiniSerializer(source="appeal.event", read_only=True)
Copy link
Member

Choose a reason for hiding this comment

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

Changing this might cause issues in the frontend where we are using event id from this. Double check with FE @shreeyash07 , if this causes any issues.

Copy link
Member

Choose a reason for hiding this comment

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

To be safe, we can rename this to event_details or something.

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.

2 participants