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

[AAE-3967] Add datetime-range search filter component #6297

Merged
merged 6 commits into from Nov 4, 2020

Conversation

arditdomi
Copy link
Contributor

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)
https://issues.alfresco.com/jira/browse/AAE-3967

What is the new behaviour?

  • New datetime range component has been added
  • The datetime searchable content model properties in attach file widget make use of it and display a datetime-picker range to be selected

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:

@pr-triage pr-triage bot added the PR: draft label Oct 30, 2020
@codecov-io
Copy link

codecov-io commented Oct 30, 2020

Codecov Report

Merging #6297 into develop will increase coverage by 1.81%.
The diff coverage is 58.53%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6297      +/-   ##
===========================================
+ Coverage    76.26%   78.07%   +1.81%     
===========================================
  Files          864      353     -511     
  Lines        19583     9749    -9834     
  Branches      3901     1973    -1928     
===========================================
- Hits         14935     7612    -7323     
+ Misses        3475     1532    -1943     
+ Partials      1173      605     -568     
Impacted Files Coverage Δ
.../components/search-filter/search-filter.service.ts 100.00% <ø> (ø)
...b/content-services/src/lib/search/search.module.ts 100.00% <ø> (ø)
...s/search-date-range/search-date-range.component.ts 63.01% <45.45%> (-0.63%) ⬇️
...-datetime-range/search-datetime-range.component.ts 59.42% <59.42%> (ø)
...de-selector/content-node-selector-panel.service.ts 92.85% <100.00%> (+0.54%) ⬆️
lib/core/form/form-base.module.ts
...src/lib/diagram/components/raphael/raphael-base.ts
lib/core/app-config/app-config.pipe.ts
...re/form/components/widgets/number/number.widget.ts
lib/core/services/auth-guard-base.ts
... and 510 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 456e042...9524aab. Read the comment docs.

this.apply(this.form.value, this.form.valid);
}

hasValidValue() {
Copy link
Contributor

Choose a reason for hiding this comment

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

missing return type

return this.form.valid;
}

getCurrentValue() {
Copy link
Contributor

Choose a reason for hiding this comment

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

missing return type

moment.locale(locale);
}

hasParseError(formControl) {
Copy link
Contributor

Choose a reason for hiding this comment

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

missing return type

event.srcElement.click();
}

setFromMaxDatetime(): any {
Copy link
Contributor

Choose a reason for hiding this comment

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

is not returning


const inputs = fixture.debugElement.nativeElement.querySelectorAll('input[ng-reflect-max="Tue Mar 10 2020 20:00:00 GMT+0"]');

expect(inputs[0]).toBeDefined();
Copy link
Contributor

Choose a reason for hiding this comment

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

is toBeTruthy enough?

it('should setup form elements on init', () => {
fixture.detectChanges();

expect(component.from).toBeDefined();
Copy link
Contributor

Choose a reason for hiding this comment

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

is defined in general or should it have a certain value?

---

# [Search datetime range component](../../../lib/content-services/src/lib/search/components/search-datetime-range/search-datetime-range.component.ts "Defined in search-date-range.component.ts")

Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't be search-datetime-range.component.ts instead of search-date-range.component.ts?

@eromano eromano merged commit 20fdd99 into develop Nov 4, 2020
@eromano eromano deleted the dev-adomi-AAE-3967 branch November 4, 2020 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants