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

Refactor WellCompletions back-end code #317

Merged

Conversation

jorgenherje
Copy link
Collaborator

@jorgenherje jorgenherje commented Sep 15, 2023

Refactor code for WellCompletions-module:

Back-end:

  • Rename from WellCompletion to WellCompletions
  • Return WellCompletionsData directly from well_completions_access - do not expose pandas DataFrame structure.
  • Move well_completions_utils-code into well_compltions_access.py and rename to WellCompletionDataConverter
  • well_completions/router.py update usage according to update of WellCompletionsAccess
  • Remove schema in routers layer (no need)
  • well_completions_types.py Remove unneeded inheritance and fix naming to plural.

Front-end:

  • Update usage according to fixes in back-end

Closes: #314

@jorgenherje jorgenherje self-assigned this Sep 15, 2023
@jorgenherje jorgenherje requested a review from sigurdp September 15, 2023 13:58
@jorgenherje jorgenherje added the enhancement New feature or request label Sep 15, 2023
@jorgenherje jorgenherje force-pushed the 314-refactor-well-completion-code branch 2 times, most recently from 9a2b90b to 86a4853 Compare September 18, 2023 12:22
@jorgenherje jorgenherje marked this pull request as ready for review September 18, 2023 12:23
@jorgenherje jorgenherje force-pushed the 314-refactor-well-completion-code branch from 86a4853 to 956c4e1 Compare September 18, 2023 12:31
Copy link
Collaborator

@sigurdp sigurdp left a comment

Choose a reason for hiding this comment

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

👍

- Remove unnecessary schema
- Fixup in types: remove inheritance and improve naming
- Refactor utility code into accessor code/file
- Update usage in front-end
- Validation method
- Clean copy when all common columns are equal
- Generate api after rebase
- Fix plurar
@jorgenherje jorgenherje force-pushed the 314-refactor-well-completion-code branch from 956c4e1 to 7b29774 Compare September 25, 2023 06:42
@jorgenherje jorgenherje merged commit 4a83790 into equinor:main Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor and improve code for WellCompletion module
2 participants