-
Notifications
You must be signed in to change notification settings - Fork 0
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
Listing Widget static filenames #45
Comments
@troughc This is high priority for Syam because it is needed by Verb interactive (for Destinations Canada website, for NAC Osaka) |
@saumier I have done some research and found that by using a package called react-app-rewired we can create the .js and .css files with the name of our choice appended with the version in package.json. I believe this will solve the issue. Please let me know what you think of this approach. Also, I have some questions - 1 - Since we want the file name to change only when releasing a major version, I was thinking about running "npm version major" before such updates so that the file names will remain the same for all other patch updates and minor updates. What are your thoughts on this 2 - Should all versions be available simultaneously, or only the latest version and the previous major one? 3 - How will minor or patch updates be handled? You can find the changes I implemented to achieve this here: feature/issue-45 here are the references I used - |
@SyamBabu-M The version in the file name or path should not include patches (third part of semantic versioning) which are fixes that should not require any change from the client. I think it is good to have the middle number which is for new non-breaking features included in the filename or path but it is the major (high risk and breaking changes) that must be in the filename or path. How do you propose we do this? |
@saumier This sounds great. I am looking into integrating this into our github action.
I am hoping we will only preserve existing versions for major releases. Or do we need to preserve the existing versions during minor updates? |
@troughc @SyamBabu-M As discussed at the standup today, lets only use the major version in the filename/path. This way the client will be able to automatically get patches and minor non-breaking updates. We will maintain previous major versions so the client can decide when and if they want to upgrade their major version. |
@saumier, I have updated the develop as per requirement. Here is a summary - 1 - Updated the code to ensure that all build files are now organized within a directory named "v[major-version-number]". Please check the staging S3 bucket to ensure everything is in order. |
@SyamBabu-M I made a couple of comments in the code review. I don't think we need to change both the filenames and the path. I prefer just the path. And please do not delete any of the older major versions. Also please add a description of the release process to the readme to explain how to change the version number and how it impacts the build and the S3 bucket. Did you test the iFrame to ensure that it still works with the new file names? |
@saumier I have added all the requested changes. Please look into those.
yes they are working fine |
@SyamBabu-M Please see comment in PR. Almost there. Please test with the urls to make sure they are working. |
@SyamBabu-M Please merge both PRs and test the new S3 bucket with both the current version of iframe (using root directory) and the new v0 directly with both the div and iframe approaches. Thx. |
@saumier I merged the pr and tested out the iframe and div approach in both v0 and the current version. Everything is working fine. |
As a developer integrating the listing-widget using
The text was updated successfully, but these errors were encountered: