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

re-export DA interfaces from search-core #131

Merged
merged 4 commits into from
Aug 17, 2022
Merged

Conversation

yen-tt
Copy link
Collaborator

@yen-tt yen-tt commented Aug 17, 2022

  • update search-core version to be 2.0.0-alpha.215 which the new DA interfaces. re-export those DA interfaces in headless.
  • fix some new TS issues in DA jest test and existing issues in facets and verticalSearch test.

bump headless version to 2.0.0-alpha.131, to be publish after this pr is merged

J=SLAP-2324
TEST=none

@yen-tt yen-tt requested a review from a team as a code owner August 17, 2022 13:53
@coveralls
Copy link

coveralls commented Aug 17, 2022

Pull Request Test Coverage Report for Build 2875962594

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.2%

Totals Coverage Status
Change from base Build 2869639932: 0.0%
Covered Lines: 341
Relevant Lines: 359

💛 - Coveralls

@yen-tt yen-tt added the WIP label Aug 17, 2022
@yen-tt yen-tt force-pushed the dev/alpha-for-DA-changes branch from 214dbea to 7212ff3 Compare August 17, 2022 14:10
@yen-tt yen-tt removed the WIP label Aug 17, 2022
@@ -7,7 +7,7 @@ it('can select a facet option', () => {
const [initialState, facetOption] = createInitialState(false);
const answers = createMockedHeadless({}, initialState);
answers.setFacetOption('testFieldId', facetOption, true);
expect(answers.state.filters.facets[0].options[0]).toEqual({
expect(answers.state.filters.facets?.[0].options[0]).toEqual({
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity did these TS issues come from a previous commit?

Copy link
Collaborator Author

@yen-tt yen-tt Aug 17, 2022

Choose a reason for hiding this comment

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

yup, I can see these TS issues when I switch to develop branch just now. Edit: the TS issue in integration/directAnswer.ts is from the version bump in this pr tho. Everything else come from previous commit

@yen-tt yen-tt merged commit 90e9feb into develop Aug 17, 2022
@yen-tt yen-tt deleted the dev/alpha-for-DA-changes branch August 17, 2022 15:27
etc/search-headless.api.md Show resolved Hide resolved
etc/search-headless.api.md Show resolved Hide resolved
@yen-tt yen-tt mentioned this pull request Sep 7, 2022
yen-tt added a commit that referenced this pull request Sep 8, 2022
## Version 2.0.0

### Breaking Changes
- Re-exported all modified and newly added direct answer related interfaces from search-core V2. (#131 #133 #136 ) 
  - More details of the changes are listed in [search-core v2 release notes](https://github.com/yext/search-core/releases/tag/v2.0.0)
- Restructured static filters state to allow user to store more complex combination of static filters as well as field value filters. `SelectableFilter` interface is replaced with `SelectableStaticFilter`, which uses the new `StaticFilter` interface from search-core V2. The static filters state now accepts an array of `SelectableStaticFilter`. (#130 )
- All exports marked as `@deprecated` in previous version(s) as part of a rebranding process is now removed in V2 (#132  )
  - for more details, the removed deprecated identifiers are listed in [v1.3 release notes](https://github.com/yext/search-headless/releases/tag/v1.3.0)
@yen-tt yen-tt mentioned this pull request Sep 8, 2022
yen-tt added a commit that referenced this pull request Sep 8, 2022
## Version 2.0.0

### Breaking Changes
- Re-exported all modified and newly added direct answer related interfaces from search-core V2. (#131 #133 #136 ) 
  - More details of the changes are listed in [search-core v2 release notes](https://github.com/yext/search-core/releases/tag/v2.0.0)
- Restructured static filters state to allow user to store more complex combination of static filters as well as field value filters. `SelectableFilter` interface is replaced with `SelectableStaticFilter`, which uses the new `StaticFilter` interface from search-core V2. The static filters state now accepts an array of `SelectableStaticFilter`. (#130 )
- All exports marked as `@deprecated` in previous version(s) as part of a rebranding process is now removed in V2 (#132  )
  - for more details, the removed deprecated identifiers are listed in [v1.3 release notes](https://github.com/yext/search-headless/releases/tag/v1.3.0)
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.

4 participants