Skip to content

Commit

Permalink
New actions related to entity form migration (#1040)
Browse files Browse the repository at this point in the history
* New actions related to entity form migration

* minor changes
  • Loading branch information
ktuite authored Oct 16, 2024
1 parent 7bee96a commit 7518cdb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/audit/filters/action.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default {
this.actionOption('form.update.draft.set'),
this.actionOption('form.update.publish'),
this.actionOption('form.update.draft.delete'),
this.actionOption('form.update.draft.replace'),
this.actionOption('form.attachment.update'),
this.actionOption('form.submission.export'),
this.actionOption('form.delete'),
Expand Down
4 changes: 3 additions & 1 deletion src/locales/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"create": "@:audit.action.default.create",
"update": "@:audit.action.default.update",
"update_draft_set": "Create or Update Draft",
"update_draft_replace": "Replace Draft",
"update_publish": "Publish Draft",
"update_draft_delete": "Abandon Draft",
"attachment_update": "Update Attachments",
Expand Down Expand Up @@ -158,7 +159,8 @@
// type of action that the server performs when it is upgraded.
"upgrade": {
"process_form": "Process Form",
"process_form_draft": "Process Form Draft"
"process_form_draft": "Process Form Draft",
"process_form_entities_version": "Flag Form for Upgrade"
},
// This is shown in the log of actions performed on the server. It is a
// type of action that can be taken on or for a Web User.
Expand Down
4 changes: 3 additions & 1 deletion test/components/audit/table.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ describe('AuditTable', () => {
['form.create', ['Form', 'Create']],
['form.update', ['Form', 'Update Details']],
['form.update.draft.set', ['Form', 'Create or Update Draft']],
['form.update.draft.replace', ['Form', 'Replace Draft']],
['form.update.publish', ['Form', 'Publish Draft']],
['form.update.draft.delete', ['Form', 'Abandon Draft']],
['form.attachment.update', ['Form', 'Update Attachments']],
Expand All @@ -170,7 +171,8 @@ describe('AuditTable', () => {
['form.restore', ['Form', 'Undelete']],
['form.purge', ['Form', 'Purge']],
['upgrade.process.form', ['Server Upgrade', 'Process Form']],
['upgrade.process.form.draft', ['Server Upgrade', 'Process Form Draft']]
['upgrade.process.form.draft', ['Server Upgrade', 'Process Form Draft']],
['upgrade.process.form.entities_version', ['Server Upgrade', 'Flag Form for Upgrade']]
];

for (const [action, type] of cases) {
Expand Down
8 changes: 8 additions & 0 deletions transifex/strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@
"string": "Create or Update Draft",
"developer_comment": "This is shown in the log of actions performed on the server. It is a type of action that can be taken on a Form."
},
"update_draft_replace": {
"string": "Replace Draft",
"developer_comment": "This is shown in the log of actions performed on the server. It is a type of action that can be taken on a Form."
},
"update_publish": {
"string": "Publish Draft",
"developer_comment": "This is shown in the log of actions performed on the server. It is a type of action that can be taken on a Form."
Expand Down Expand Up @@ -290,6 +294,10 @@
"process_form_draft": {
"string": "Process Form Draft",
"developer_comment": "This is shown in the log of actions performed on the server. It is a type of action that the server performs when it is upgraded."
},
"process_form_entities_version": {
"string": "Flag Form for Upgrade",
"developer_comment": "This is shown in the log of actions performed on the server. It is a type of action that the server performs when it is upgraded."
}
},
"user": {
Expand Down

0 comments on commit 7518cdb

Please sign in to comment.