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

chore(fulltext-search): filter out deactivated projects and system projects #1015

Merged
merged 2 commits into from Apr 19, 2023

Conversation

mdelez
Copy link
Collaborator

@mdelez mdelez commented Apr 19, 2023

resolves DEV-1763

@mdelez mdelez added the chore Maintenance and build tasks label Apr 19, 2023
@mdelez mdelez self-assigned this Apr 19, 2023
@linear
Copy link

linear bot commented Apr 19, 2023

DEV-1763 Deleted project should not be available in the full-text search filter list

Once a project has been deleted, it should no longer be visible in the dropdown menu of the full-text search bar (see attached screenshot).

Only projects with the “status = true” should be shown in the dropdown list.

true = active, not deleted
false = not active, deleted

delte-proj-search.png

project-response.png

@mdelez mdelez marked this pull request as ready for review April 19, 2023 09:41
this.projects = response.body.projects;
// this.loadSystem = false;
// filter out deactivated projects and system projects
this.projects = response.body.projects.filter(p => p.status === true && !this.doNotDisplay.includes(p.id));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe replace the name "doNotDisplay" with "hideProjects" so there is not double negation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

makes sense, changed in bf146e0

Copy link
Collaborator

@Vijeinath Vijeinath left a comment

Choose a reason for hiding this comment

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

Good!

@mdelez mdelez merged commit 13895f7 into main Apr 19, 2023
10 checks passed
@mdelez mdelez deleted the feature/dev-1763-deleted-project-should-not-be-available branch April 19, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance and build tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants