Series link: include state ID in the URL

Open
#592 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
web-dev

Research direction

Start at the series-name link from /project/${PROJECT}/list/ and trace how the existing state query parameter is read and the series URL is built. Done means a series link preserves the selected state when one was previously set, producing the requested series and state query parameters together.

Written by the indexing model from the issue text.

Description

enhancement

Hello,

First, thank you for developing and maintaining this great tool!

Could it be possible to duplicate the state=(...) in the URL of a series?

For example, if I'm on a page: /project/${PROJECT}/list/?state=*, and I click on a series name, it will redirect me to /project/${PROJECT}/list/?series=${SERIES_ID}. If the patches are in a non "Action Required" state, the list will be empty, I then need to change the filter again.

Could it be possible to amend the URL to add &state=${STATE} if the state was previous set?
So to redirect to /project/${PROJECT}/list/?series=${SERIES_ID}&state=${STATE} instead.

Dominant language
Python
Stars
317
Forks
91
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getpatchwork/patchwork

All issues in getpatchwork/patchwork

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.