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

✨ Support selecting zaaktype from list in filter in destruct… #36

Merged
merged 1 commit into from
May 17, 2024

Conversation

svenvandescheur
Copy link
Contributor

…ion list create page

});
export const destructionListCreateLoader = loginRequired(
async ({ request }) => {
const searchParams = new URL(request.url).searchParams;
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the old version, the query params used here were:

        'archiefnominatie': 'vernietigen',
        'archiefactiedatum__lt': currentDate,

We also wanted the already used zaken to be filtered out, so the param not_in_destruction_list should be used. Not sure if this was already taken into account, so I thought that I would mention it 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@SilviaAmAm nice catch, this was indeed left out. I've added this line to introduce it:

searchParams.set("not_in_destruction_list", "true");

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lets discuss the other fields later on (and possibly create and issue out of it). I'll merge this to support ongoing efforts.

@svenvandescheur svenvandescheur force-pushed the feature/show-zaaktypen-as-options-in-filter branch from 13aa4ea to 3739140 Compare May 17, 2024 11:43
@svenvandescheur svenvandescheur force-pushed the feature/show-zaaktypen-as-options-in-filter branch from 3739140 to e157d2a Compare May 17, 2024 11:44
@svenvandescheur svenvandescheur merged commit 78f0cee into main May 17, 2024
6 checks passed
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.

3 participants