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: Fixed string type logs not being rendered #2440

Merged

Conversation

Anders2303
Copy link
Collaborator

The tracks.ts/setupPlot had an error that caused all curves valuetype: "string" to be skipped. Fixed it so that stacked curves once again support string values. Also updated the "Discrete" storybook example to include a string-value curve, so that future smoke-tests can notice this type of error.

I also tweaked some internals in tracks.ts while I was at it; renamed some internal functions and variables, and made sure that styles are applied before setupPlot is called (this is to ensure we have the full props when validating them). Note: a side-effect of this is that generateColor() is called a little more often, so the smoke-tests screenshots have been updated to accommodate for new colors

@Anders2303 Anders2303 added bug Something isn't working CeeSol Task owned by Ceetron Solutions well-log-viewer labels Feb 12, 2025
@Anders2303 Anders2303 requested a review from w1nklr February 12, 2025 09:10
@Anders2303 Anders2303 removed the request for review from w1nklr February 12, 2025 09:32
@w1nklr
Copy link
Collaborator

w1nklr commented Feb 13, 2025

Are the color changes in the images expected ?

@Anders2303
Copy link
Collaborator Author

Anders2303 commented Feb 13, 2025

Are the color changes in the images expected ?

Yes 👍

Note: a side-effect of this is that generateColor() is called a little more often, so the smoke-tests screenshots have been updated to accommodate for new colors

@Anders2303 Anders2303 merged commit 90acb69 into equinor:master Feb 13, 2025
10 checks passed
@Anders2303 Anders2303 deleted the well-log-viewer/fix-string-valuetype branch February 13, 2025 09:02
hkfb pushed a commit that referenced this pull request Feb 13, 2025
@hkfb
Copy link
Collaborator

hkfb commented Feb 13, 2025

🎉 This issue has been resolved in version well-log-viewer@2.3.2 🎉

The release is available on GitHub release

@hkfb hkfb added the released label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CeeSol Task owned by Ceetron Solutions released well-log-viewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants