Skip to content

feat(publisher-ers): support ERS v2.x - #3124

Closed
sebbi08 wants to merge 2 commits into
electron:mainfrom
sebbi08:feature/ESRV2Support
Closed

sebbi08 wants to merge 2 commits into
electron:mainfrom
sebbi08:feature/ESRV2Support

Conversation

@sebbi08

@sebbi08 sebbi08 commented Dec 29, 2022

Copy link
Copy Markdown
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • [?] The changes are appropriately documented (if applicable). Need help here
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

With the latest version of the ERS the call to the version api need to have a different structure.

BREAKING CHANGE: Not compatible with ERS 1.x

With the latest version of the ERS the call to the version api need to
have a different structure.

BREAKING CHANGE: Not compatible with ERS 1.x
@sebbi08
sebbi08 force-pushed the feature/ESRV2Support branch from d2737bd to 422817e Compare December 29, 2022 09:43
as the structur of the /version api is differen the exising version checks need to be changed
@sebbi08
sebbi08 force-pushed the feature/ESRV2Support branch from fc359fe to 77729f3 Compare December 30, 2022 18:33
@sebbi08

sebbi08 commented Dec 30, 2022

Copy link
Copy Markdown
Author

Ok, I just retested it, and it is still compatible with version 1.x. So we can remove the "BREAKING CHANGE"

@erickzhao erickzhao left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does ERS have a comprehensive list of changes for the v2 line? I'm curious because the commit messages don't seem to mention this flavor change specifically.

ArekSredzki/electron-release-server@v1.5.2...v2.0.0

@sebbi08

sebbi08 commented Jan 4, 2023

Copy link
Copy Markdown
Author

Hi no sadly no documentation, I had to look at the responses with postman.

But I had to ditch the version 2.0.0 back to version 1.5.2, but I noticed that the structure of the request is there the new one already.

also looking at the changes from 1.5.0 to the current i could not find any meaningfull change in the version controller
ArekSredzki/electron-release-server@v1.5.0...v2.1.2#diff-4ae54b06789ed67b0ae760dd0b9098cedf855e6ca9d8ac6abe4b59526cc2e07dR46

also i the model there was no such change
ArekSredzki/electron-release-server@v1.5.0...v2.1.2#diff-55d3ecb8588f7504efda7e1d01ea592fc16d2624df33ea1421b92d40a7f1e7c8L1

the only change that i see that might be relevant is
ArekSredzki/electron-release-server@v1.5.0...v2.1.2#diff-178b6d7abb8c0b63db25fff320760527d7dc89439d735cc9d4891a20676d3491R137

and they are due to the Sails/Waterline update

@sebbi08

sebbi08 commented Jan 4, 2023

Copy link
Copy Markdown
Author

@ArekSredzki maybe you can help us out here

@erickzhao
erickzhao marked this pull request as draft January 10, 2023 19:41
@ArekSredzki

Copy link
Copy Markdown
Contributor

Sorry for missing your message @sebbi08! I happen to be working on this now as well here: #3149

@ArekSredzki

Copy link
Copy Markdown
Contributor

As you mentioned, the API changes were forced by updating SailJS/WaterlineJS.

Could you please elaborate on what you meant with the following:

But I had to ditch the version 2.0.0 back to version 1.5.2, but I noticed that the structure of the request is there the new one already.

@sebbi08

sebbi08 commented Jan 27, 2023

Copy link
Copy Markdown
Author

@ArekSredzki sorry not the best wording 🙈

I had updated to 2.x but because of some problem with the encryption I changed it back to version 1.5.2.

But even at that version, the API was already in the new structure.
At least the result of the API calls had the new structure, and it also accepted the new req body structure.

Closing this in favor of #3149

@sebbi08 sebbi08 closed this Jan 27, 2023
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.

3 participants