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

[ACS-4985] Created an advanced date range filter for search #8714

Merged
merged 76 commits into from
Jul 21, 2023

Conversation

swapnil-verma-gl
Copy link
Contributor

@swapnil-verma-gl swapnil-verma-gl commented Jun 28, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)
There is no advances date range filter for search

What is the new behaviour?
Created a new advanced date range filter for search. Also created a tabbed component for filtering on created as well as modified date. Refer ACS-4985 for more

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@swapnil-verma-gl swapnil-verma-gl changed the title Dev swapnil aca 4985 created modified facet [ACS-4985] Created an advanced date range filter for search Jun 28, 2023
@swapnil-verma-gl swapnil-verma-gl marked this pull request as draft June 28, 2023 11:08
@swapnil-verma-gl swapnil-verma-gl marked this pull request as ready for review June 28, 2023 11:23
demo-shell/src/app.config.json Show resolved Hide resolved
}

hasValidValue(): boolean {
return !Object.values(this.tabsValidity).some((valid) => !valid);
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a bit weird negation, I think it would be more readable if you use .every and check if each is valid instead of checking if some is invalid and negating 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.

Updated the code to use .every() instead. This looks much better now, thanks!!

this.startValue = {
...this.startValue
};
setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is there timeout required here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was leftover code that was not needed. Removed setTImeout()

…e when setting invalid date error on between date form fields
… 'Between' options use the start date to end date query format
…ng some numbers in the 'In the last' input field would clear out the field
…d width of the side filters panel in demo-shell search results window.
@swapnil-verma-gl swapnil-verma-gl force-pushed the dev-swapnil-ACA-4985-created-modified-facet branch from 5e5130f to 1e6b351 Compare July 21, 2023 07:51
@sonarcloud
Copy link

sonarcloud bot commented Jul 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.4% 0.4% Duplication

@swapnil-verma-gl swapnil-verma-gl merged commit 649bfd7 into develop Jul 21, 2023
33 checks passed
@swapnil-verma-gl swapnil-verma-gl deleted the dev-swapnil-ACA-4985-created-modified-facet branch July 21, 2023 10:38
@swapnil-verma-gl swapnil-verma-gl restored the dev-swapnil-ACA-4985-created-modified-facet branch July 21, 2023 15:44
@swapnil-verma-gl swapnil-verma-gl deleted the dev-swapnil-ACA-4985-created-modified-facet branch July 24, 2023 07:38
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.

5 participants