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

ci: add downgrade script for algoliasearch v4 and steps #6286

Merged

Conversation

aymeric-giraudet
Copy link
Member

@aymeric-giraudet aymeric-giraudet commented Jul 16, 2024

Summary

FX-2929

Result

We run the same tests and type checking as for v5 as they were written for v4 anyway, it does work

@aymeric-giraudet aymeric-giraudet requested review from a team, sarahdayan and Haroenv and removed request for a team July 16, 2024 10:24

shell.exec('yarn install');

shell.exec('cp -r node_modules/algoliasearch-v4 node_modules/algoliasearch');
Copy link
Member Author

Choose a reason for hiding this comment

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

Struggled with yarn which still keeps 4.23.2 with the algoliasearch-v4 name, even if we remove the alias.

It does output some warnings like "warning Pattern is trying to unpack in the same destination" which may be related.

Copying it manually works though so idk if we should bother

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this is because of Create InstantSearch App

Copy link

codesandbox-ci bot commented Jul 16, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 545a804:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

overall this looks good, let's just get CI to pass once then lgtm!

.circleci/config.yml Outdated Show resolved Hide resolved
@aymeric-giraudet aymeric-giraudet merged commit e1e6a79 into chore/examples-algoliasearch-v5 Jul 16, 2024
9 checks passed
@aymeric-giraudet aymeric-giraudet deleted the ci/algoliasearch-v4-steps branch July 16, 2024 12:36
Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

approve :)

Haroenv pushed a commit that referenced this pull request Jul 17, 2024
* ci: add downgrade script for algoliasearch v4 and steps

* test:ci instead

* store results
Haroenv pushed a commit that referenced this pull request Aug 19, 2024
* ci: add downgrade script for algoliasearch v4 and steps

* test:ci instead

* store results
Haroenv added a commit that referenced this pull request Aug 20, 2024
* chore(examples): update search client to v5

* chore: types running with v4 locally, but also v4 and v3 (#6271)

* chore: change type

* WIP: expand search parameters

doesn't work as there still are v4 v5 differences of course

* do it correctly

* use regular client

* not sure if this should stay

* WIP

* changes rule

* fix dependency

* change order to make script work

* almost all types fixed

* improve test

* fix(types): accepts client with wrong types

will be fixed once algolia/api-clients-automation#3357 is done

* tests

* chore(helper): compatibility

* chore(legacy): correct replacement

* don't remove v5 fully

* fix errors

* safer (or less safe lol)

* correct import

* fix fake type

* v5 only works

* tests

* script for examples too

* script for examples too

* chore(answers): bleh get rid of this!

* stuff

* simplify

* ci: add downgrade script for algoliasearch v4 and steps (#6286)

* ci: add downgrade script for algoliasearch v4 and steps

* test:ci instead

* store results

* fixes

---------

Co-authored-by: Haroen Viaene <hello@haroen.me>
Co-authored-by: Aymeric Giraudet <aymeric.giraudet@algolia.com>
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.

2 participants