bcgov / bcgov/entity

Navigate directly to a filing URL (without draft ID) when a draft already exist

Open
#16,461 0 comments 0 reactions 0 assignees View on GitHub
bug ENTITY - DO NOT USE Priority3
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

Issue:
When a user navigate directly to a filing URL (without draft ID) and a draft already exists, the filing cannot be saved as a draft or proceed to complete.

Steps to reproduce:
1. Start a special resolution filing
2. Copy and save the filing URL link (e.g. ...businesses/edit/CP1002552/special-resolution?accountid=2816)
3. Save as draft
4. Retrieve URL at a later time
5. Users can’t save this page as draft or continue this filing, shows an error message:

![Screenshot 2023-05-19 at 9.10.58 AM.png](https://images.zenhubusercontent.com/635959035fc077bd5d3e62a0/d9804f22-c428-4838-b972-6c2e843c0cf3)

Expected behavior:
When user retrieve a filing URL without draft ID, redirect user to business detail page.

![image.png](https://images.zenhubusercontent.com/635959035fc077bd5d3e62a0/b9908a75-4a5b-4ff3-bf80-e283d46d4ed1)

Scope:
All filings that can be saved as a draft.

Contributor guide

No contributing guide indexed for this repository

Research direction

No implementation files or tests are named. Start by locating the filing URL route and the existing draft-handling and business-detail navigation, then reproduce the direct URL flow; done means every filing that supports drafts redirects to the business detail page when a matching draft already exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.