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

fix: Fix template filtering version mismatch #16843

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

sharat87
Copy link
Member

The getReleasedVersion method returns the current running version, only if it dosen't end with -SNAPSHOT. If it does end with -SNAPSHOT, then it'll return the version from the most recent entry in the release notes.

The effect of this is that when fetching template applications, on version v1.8.1-SNAPSHOT, we pass in version as v1.8.0 (which would be the most recent in release notes), which means the latest and greatest of templates won't ever be listed on prod.

The cloud-services API is actually capable of handling versions with -SNAPSHOT in them just fine. This server just isn't sending it.

This fix will send the current running version as is to cloud-services so we get more accurate results.

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
@sharat87 sharat87 added skip-docs skip-changelog Adding this label to a PR prevents it from being listed in the changelog labels Sep 16, 2022
@vercel
Copy link

vercel bot commented Sep 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
appsmith ✅ Ready (Inspect) Visit Preview Sep 16, 2022 at 3:33PM (UTC)

@github-actions github-actions bot added Bug Something isn't working and removed skip-changelog Adding this label to a PR prevents it from being listed in the changelog labels Sep 16, 2022
@github-actions
Copy link

Unable to find test scripts. Please add necessary tests to the PR.

@nidhi-nair
Copy link
Contributor

QQ: For some more context to template apps, what does the latest running version have to do with them @sharat87 ?

@sharat87
Copy link
Member Author

@nidhi-nair, each template application has a minVersion (and soon, a maxVersion). This specifies that this template app is only functional on Appsmith versions above the minVersion. So, we need the correct value for this, from the running Appsmith, so we can show just those templates that will work on their version of Appsmith.

@sharat87 sharat87 merged commit 9a35107 into release Sep 29, 2022
@sharat87 sharat87 deleted the fix/template-version-mismatch-on-cloud branch September 29, 2022 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working skip-docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants