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

Csse layout 550 error #357

Merged
merged 11 commits into from
Nov 25, 2024
Merged

Csse layout 550 error #357

merged 11 commits into from
Nov 25, 2024

Conversation

loriab
Copy link
Collaborator

@loriab loriab commented Nov 5, 2024

Description

  • rm v2.<>Result.error field and forgive its empty presence in v1.<>Result.convert_v() fn
  • enforce success=T/F in v2.<>Result and v2.FailedOperation
  • changelog for details
  • py37 is on the chopping block
  • also, the schema_version stamping instead of popping the version was convenient for the convert_v function when v1 and v2 were same layout. but the pop strategy might be better long-haul.

Changelog description

Status

  • Code base linted
  • Ready to go

@loriab loriab changed the title remove v2.Result.error field Csse layout error Nov 5, 2024
@loriab loriab changed the title Csse layout error Csse layout 550 error Nov 5, 2024
Copy link

codecov bot commented Nov 9, 2024

Codecov Report

Attention: Patch coverage is 72.58065% with 17 lines in your changes missing coverage. Please review.

Project coverage is 86.17%. Comparing base (a1f7dcc) to head (bddb463).
Report is 4 commits behind head on next2024.

Additional details and impacted files

@loriab loriab marked this pull request as ready for review November 11, 2024 15:20
@loriab loriab mentioned this pull request Nov 12, 2024
2 tasks
@loriab
Copy link
Collaborator Author

loriab commented Nov 12, 2024

Requesting review @davidbrownell, @krachwal, @rfievet, @ketanbj, @varun646, @jyoung3131

dself = self.dict()
if version == 2:
# remove harmless empty error field that v2 won't accept. if populated, pydantic will catch it.
if dself.pop("error", None):

Choose a reason for hiding this comment

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

Consider removing the if statement (since it doesn't do anything) and change to dself.pop("error", None).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed here and two other spots in next PR

@loriab loriab merged commit 44556c0 into MolSSI:next2024 Nov 25, 2024
15 checks passed
@loriab loriab deleted the csse_layout_536a branch November 26, 2024 18:10
@loriab loriab restored the csse_layout_536a branch November 26, 2024 18:45
@loriab loriab deleted the csse_layout_536a branch November 26, 2024 20:06
loriab added a commit that referenced this pull request Jan 13, 2025
* remove v2.Result.error field

* convert subresults for error field in procedures

* enforce success in v2. test success

* surveys schema_version and extras

* round out survey checks for now

* atspec no ver

* skip a couple tests on py37

* more fixes

* fix selector

* py37

* another
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.

2 participants