-
Notifications
You must be signed in to change notification settings - Fork 50
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
WE-810 FormationMarker view #1793
Conversation
|
||
namespace WitsmlExplorer.Api.Models | ||
{ | ||
public class Struct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Struct seems like a name which is too generic. Would StratigraphyStruct be a better choice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, implemented.
}); | ||
}; | ||
|
||
const columns: ContentTableColumn[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be more efficient to use the useMemo hook here?
const columns: ContentTableColumn[] = useMemo(
() => [
{property: "name", label: "name", type: ContentType.String},
{property: "itemState", label: "itemState", type: ContentType.String},
{property: "mdPrognosed", label: "mdPrognosed", type: ContentType.String},
{property: "tvdPrognosed", label: "tvdPrognosed", type: ContentType.String},
{property: "mdTopSample", label: "mdTopSample", type: ContentType.String},
{property: "tvdTopSample", label: "tvdTopSample", type: ContentType.String},
{property: "thicknessBed", label: "thicknessBed", type: ContentType.String},
{property: "thicknessApparent", label: "thicknessApparent", type: ContentType.String},
{property: "thicknessPerpen", label: "thicknessPerpen", type: ContentType.String},
{property: "mdLogSample", label: "mdLogSample", type: ContentType.String},
{property: "tvdLogSample", label: "tvdLogSample", type: ContentType.String},
{property: "dip", label: "dip", type: ContentType.String},
{property: "dipDirection", label: "dipDirection", type: ContentType.String},
{property: "lithostratigraphic", label: "lithostratigraphic", type: ContentType.String},
{property: "chronostratigraphic", label: "chronostratigraphic", type: ContentType.String},
{property: "description", label: "description", type: ContentType.String}
],
[]
);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on this article, possibly not. Moved columns
out of the functional component instead, given that the dependency list would be empty.
Fixes
This pull request fixes WE-810
Description
Implement formationMarker API routes and view.
Type of change
Impacted Areas in Application
Checklist:
Communication
Code quality
Test coverage
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...