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

Feature/task deletion #6557

Merged
merged 6 commits into from
Feb 28, 2024
Merged

Feature/task deletion #6557

merged 6 commits into from
Feb 28, 2024

Conversation

marijnkampf
Copy link
Contributor

@marijnkampf marijnkampf commented Feb 26, 2024

Description of change

Combination of previously reviewed sub tickets into feature branch.

Replace completing of tickets using archived with status is complete.
Add delete functionality using archived.

Description of change

Update the FE to use the new status field and allow for Deletion of Tasks using archived.

On the my tasks dashboard deleted tasks should be hidden.

On the task details page, show DELETED status on the task - this is so users can click through from ‘task deleted by other user’ notification.

Add Delete button on Task view page using.

Test instructions

Run this locally with the feature/task-deletion branch on the API.

  • Whilst testing verify changes below are reflected on the Task dashboards (please note this uses Open search and there may be a delay in changes being reflected).
  • Whilst testing verify that reminders are send for each of the changes via gov notify (changes are scheduled using long/short queues).
  1. Create a Task from the Tasks tab on the Data Hub homepage.
  2. Edit the task
  3. From the edit page mark the task as complete. [The task should be marked complete]
  4. From the edit page mark the task as deleted. [The task should be deleted]
  5. Using the back button of your browser go back to the deleted task, it should be marked Deleted.
  6. The deleted task should not be included in the Tasks tab table.

Screenshots

Before

No delete button visible.

image

After

A delete button should be displayed on the Edit Task page.

image

Dashboard

No visual changes in the my tasks dashboard

image

Checklist

  • Has the branch been rebased to main?
  • Automated tests (Any of the following when applicable: Unit, Functional or End-to-End)
  • Manual compatibility testing (Browsers: Chrome, Firefox, Edge, Safari)

Copy link

cypress bot commented Feb 26, 2024

Passing run #51421 ↗︎

0 26 0 0 Flakiness 0

Details:

Update details-spec.js
Project: data-hub-frontend Commit: 4dd9ce4776
Status: Passed Duration: 02:03 💡
Started: Feb 28, 2024 7:40 AM Ended: Feb 28, 2024 7:42 AM

Review all test suite changes for PR #6557 ↗︎

@marijnkampf marijnkampf marked this pull request as ready for review February 26, 2024 11:20
@marijnkampf marijnkampf requested a review from a team as a code owner February 26, 2024 11:20
@marijnkampf marijnkampf force-pushed the feature/task-deletion branch from acde6cb to 7da59f5 Compare February 27, 2024 07:56
Copy link
Contributor

@oliverjwroberts oliverjwroberts left a comment

Choose a reason for hiding this comment

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

Requesting a minor typo fix, but otherwise, looks good to me!

marijnkampf and others added 6 commits February 28, 2024 07:34
* Use status complete/active instead of archive true/false

---------

Co-authored-by: Marijn Kampf <[email protected]>
* Use status for active and complete

* Add API calls to a11y test exclusion list

* Fix tasks/details-spec.js
* Update the FE to use the new status field and allow for Deletion of Tasks using archived.
Fix test description
@marijnkampf marijnkampf force-pushed the feature/task-deletion branch from 535e165 to 4dd9ce4 Compare February 28, 2024 07:34
@marijnkampf marijnkampf merged commit 194a5de into main Feb 28, 2024
16 checks passed
@marijnkampf marijnkampf deleted the feature/task-deletion branch February 28, 2024 08:23
chopkinsmade pushed a commit that referenced this pull request Feb 28, 2024
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.

4 participants