orchidsoftware / orchidsoftware/platform

Add query parameters on filter

Open
#2,831 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
4.8k
Forks
663
Avg merge
1d 9h
Merged PRs (30d)
7

Description

Hello, I have a tree-like data like this :

  • folderA
    • childA1
      • childA1X
      • childA1Y
      • childA1Z
    • childA2
    • childA3
  • folderB
    • childB1
    • childB2
      • childB2X
      • childB2Y
      • childB2Z
    • childB3

These tree data is loaded on a list screen based on the value of query parameter 'prefix'.
For example, if prefix=folderA, the list screen will only display :

  • childA1
  • childA2
  • childA3

And if prefix=folderB/childB2, it will display :

  • childB2X
  • childB2Y
  • childB2Z

etc.

Now, if I use the filter feature while prefix is not empty, it will load a new URL with filter parameter without including the prefix parameter. How do I include the prefix parameter when filtering?

Originally posted by @juliardi in https://github.com/orchidsoftware/platform/discussions/2819

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.

Research direction

Start from the filter feature and the list-screen URL generation described in the issue, tracing how the filter and prefix query parameters are assembled. Reproduce filtering with a non-empty prefix, then verify that the resulting URL retains prefix and displays results within the selected tree path.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.