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

Parameter manager events #211

Merged
merged 4 commits into from
Nov 21, 2024
Merged

Parameter manager events #211

merged 4 commits into from
Nov 21, 2024

Conversation

cmutel
Copy link
Member

@cmutel cmutel commented Nov 19, 2024

Last PR for completing events for parameters

@cmutel cmutel requested a review from jsvgoncalves November 19, 2024 11:09
Copy link
Member

@jsvgoncalves jsvgoncalves left a comment

Choose a reason for hiding this comment

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

Tests are failing now

bw2data/parameters.py Show resolved Hide resolved
@cmutel
Copy link
Member Author

cmutel commented Nov 20, 2024

@jsvgoncalves Any idea why the tests aren't running anymore?

Copy link
Member

@jsvgoncalves jsvgoncalves left a comment

Choose a reason for hiding this comment

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

Any idea why the tests aren't running anymore?

Standard behaviour on this repo, as far as I'm aware. But I ran the CI manually: https://github.com/brightway-lca/brightway2-data/actions/runs/11949161759

I'll squash and merge this.

@cmutel
Copy link
Member Author

cmutel commented Nov 21, 2024

Sorry, just so I understand it - does that mean you manually requested the tests to run before? Could I have triggered this as well?

@jsvgoncalves
Copy link
Member

Sorry, just so I understand it - does that mean you manually requested the tests to run before? Could I have triggered this as well?

Yes, by clicking Run Workflow here: https://github.com/brightway-lca/brightway2-data/actions/workflows/python-test.yml

* `.delete()` isn't ran by the ORM layer but rather as a direct query
  and as such the approach with signals on `.save()` doesn't work.
  However, `.delete_instance()` is an ORM-layer call.
  This is at the expense of performance as all the entities to be
  deleted need to be looped over. See
  https://docs.peewee-orm.com/en/latest/peewee/playhouse.html#signals
  for more details.
@jsvgoncalves jsvgoncalves force-pushed the parameter_manager_events branch from 70f90e2 to 5470729 Compare November 21, 2024 08:37
@jsvgoncalves jsvgoncalves merged commit 0e66147 into main Nov 21, 2024
@jsvgoncalves jsvgoncalves deleted the parameter_manager_events branch November 21, 2024 08:38
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