-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds new oncall service feedback table (#3856)
- Loading branch information
Showing
19 changed files
with
566 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/dispatch/database/revisions/tenant/versions/2023-10-06_064c71206256.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"""Adds project to the service feedback table and allows hours to be fractional | ||
Revision ID: 064c71206256 | ||
Revises: 3538650dc471 | ||
Create Date: 2023-10-06 09:53:50.119947 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "064c71206256" | ||
down_revision = "3538650dc471" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("service_feedback", sa.Column("project_id", sa.Integer(), nullable=True)) | ||
op.create_foreign_key(None, "service_feedback", "project", ["project_id"], ["id"]) | ||
op.alter_column( | ||
"service_feedback", "hours", existing_type=sa.Integer(), type_=sa.Numeric(), nullable=True | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint(None, "service_feedback", type_="foreignkey") | ||
op.drop_column("service_feedback", "project_id") | ||
op.alter_column( | ||
"service_feedback", "hours", existing_type=sa.Numeric(), type_=sa.Integer(), nullable=True | ||
) | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/dispatch/static/dispatch/src/feedback/service/DeleteDialog.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<v-dialog v-model="showRemove" persistent max-width="800px"> | ||
<v-card> | ||
<v-card-title> | ||
<span class="headline">Delete Feedback?</span> | ||
</v-card-title> | ||
<v-card-text> | ||
<v-container grid-list-md> | ||
<v-layout wrap> Are you sure you would like to delete this feedback? </v-layout> | ||
</v-container> | ||
</v-card-text> | ||
<v-card-actions> | ||
<v-spacer /> | ||
<v-btn color="blue en-1" text @click="closeRemove()"> Cancel </v-btn> | ||
<v-btn color="red en-1" text @click="remove()"> Delete </v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<script> | ||
import { mapActions } from "vuex" | ||
import { mapFields } from "vuex-map-fields" | ||
export default { | ||
name: "ServiceFeedbackDeleteDialog", | ||
data() { | ||
return {} | ||
}, | ||
computed: { | ||
...mapFields("service_feedback", ["dialogs.showRemove"]), | ||
}, | ||
methods: { | ||
...mapActions("service_feedback", ["remove", "closeRemove"]), | ||
}, | ||
} | ||
</script> |
Oops, something went wrong.