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

Add is_default fields to templates, remove WritableSerialiserMethodFi… #1759

Merged
merged 8 commits into from
Apr 18, 2023

Conversation

iskhakov
Copy link
Contributor

@iskhakov iskhakov commented Apr 17, 2023

…eld, refactor fields

  • added <template>_is_default boolean field to api/internal/v1/alert_receive_channel_templates/***/ endpoint
    Uploading Screenshot 2023-04-21 at 13.32.47.png…

What this PR does

Which issue(s) this PR fixes

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • CHANGELOG.md updated (or pr:no changelog PR label added if not required)

@iskhakov iskhakov requested a review from a team April 17, 2023 07:51
@iskhakov iskhakov changed the title Add is_default fields to templates, remove WritableSerialiserMethodFi… [Ready] Add is_default fields to templates, remove WritableSerialiserMethodFi… Apr 17, 2023
@Konstantinov-Innokentii
Copy link
Member

I have a feeling that to_internal_value override could be removed completely, but it requires some deep dive in drf. Please, consider change a comment on line 238: "Override method to handle update of templates, not as a declared drf fields. Could be improved without overriding whole method."

@iskhakov iskhakov added the pr:no public docs Added to a PR that does not require public documentation updates label Apr 18, 2023
@iskhakov iskhakov changed the title [Ready] Add is_default fields to templates, remove WritableSerialiserMethodFi… Add is_default fields to templates, remove WritableSerialiserMethodFi… Apr 18, 2023
@iskhakov iskhakov added this pull request to the merge queue Apr 18, 2023
@iskhakov iskhakov removed this pull request from the merge queue due to a manual request Apr 18, 2023
@iskhakov iskhakov added this pull request to the merge queue Apr 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Apr 18, 2023
@iskhakov iskhakov added this pull request to the merge queue Apr 18, 2023
Merged via the queue into dev with commit 61dced5 Apr 18, 2023
@iskhakov iskhakov deleted the iskhakov/template_is_default_flag branch April 18, 2023 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants