Skip to content

chore(web-console): product button as reported by the database#165

Merged
bluestreak01 merged 5 commits intomainfrom
add-enterprise-versions-to-version-button
Jun 23, 2023
Merged

chore(web-console): product button as reported by the database#165
bluestreak01 merged 5 commits intomainfrom
add-enterprise-versions-to-version-button

Conversation

@argshook
Copy link
Copy Markdown
Contributor

@argshook argshook commented Jun 22, 2023

Added variations of enterprise versions for the build button visible at the lower right corner.

Examples

button display depends on the output of select build command.

Build Information: QuestDB 7.2, JDK 17.0.7, Commit Hash da47b26f74125e28a5685c174390f7704f88b21a
Screenshot 2023-06-22 at 23 16 41
  Build Information: QuestDB Enterprise 1.1.0, JDK 17.0.7, Commit Hash da47b26f74125e28a5685c174390f7704f88b21a
Screenshot 2023-06-22 at 23 20 24
Build Information: QuestDB Enterprise Pro 1.1.0, JDK 17.0.7, Commit Hash da47b26f74125e28a5685c174390f7704f88b21a
Screenshot 2023-06-22 at 20 10 06
Build Information: QuestDB Enterprise Ultimate 1.1.0, JDK 17.0.7, Commit Hash da47b26f74125e28a5685c174390f7704f88b21a
Screenshot 2023-06-22 at 20 14 52

Commit log:

  • display different button for enterprise versions

@argshook argshook self-assigned this Jun 22, 2023
insmac
insmac previously approved these changes Jun 23, 2023
Copy link
Copy Markdown
Contributor

@insmac insmac left a comment

Choose a reason for hiding this comment

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

All good, works great!

The only comment I would have is that when there would be an accidental typo within the matched regex, i.e. QuestDB Enerprise (lack of t) or anything else that's inside core/pom.xml (I believe that's when the product name goes in), it will result in a crash of the application:
CleanShot 2023-06-23 at 13 35 02@2x

But that shouldn't be a problem, I presume this kind of error can be caught before it reaches maven/homebrew/docker etc.

@argshook
Copy link
Copy Markdown
Contributor Author

thanks @insmac, good catch. App shouldn't break, i'll cover this.

@bluestreak01 bluestreak01 changed the title Add enterprise button option chore(web-console): product button as reported by the database Jun 23, 2023
@bluestreak01 bluestreak01 merged commit c962b63 into main Jun 23, 2023
@bluestreak01 bluestreak01 deleted the add-enterprise-versions-to-version-button branch June 23, 2023 14:18
argshook added a commit that referenced this pull request Jun 27, 2023
previous change in #165 made `BuildVersion` button show different view
depending on the value of `select build`.

If `select build` returns unexpected value, a fallback version `x.x.x`
was used, which is not valid semver according to `compare-versions`
util.

Moreover, if `select build` returns an unexpected value, say, while
developing QuestDB locally, it was possible for the entire web console
to crash.

This commit fixes this problem by using `0.0.0` instead of `x.x.x` as a
fallback, and in addition has more preventative measures to reduce the
chance of needing to use fallback value.
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
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