Skip to content

Replace IntoSystemSetConfig with IntoSystemSetConfigs#9247

Merged
alice-i-cecile merged 11 commits intobevyengine:mainfrom
geieredgar:configure-sets
Sep 5, 2023
Merged

Replace IntoSystemSetConfig with IntoSystemSetConfigs#9247
alice-i-cecile merged 11 commits intobevyengine:mainfrom
geieredgar:configure-sets

Conversation

@geieredgar
Copy link
Copy Markdown
Contributor

@geieredgar geieredgar commented Jul 23, 2023

Objective

Solution

  • Changed the (Into)SystemSetConfigs traits and structs be more like the (Into)SystemConfigs traits and structs.
  • Replaced uses of IntoSystemSetConfig with IntoSystemSetConfigs
  • Added generic ItemConfig and ItemConfigs types.
  • Changed SystemConfig(s) and SystemSetConfig(s) to be type aliases to ItemConfig(s).
  • Added generic process_configs to ScheduleGraph.
  • Changed configure_sets_inner and add_systems_inner to reuse process_configs.

Changelog

  • Added run_if to IntoSystemSetConfigs
  • Deprecated Schedule::configure_set and App::configure_set
  • Removed IntoSystemSetConfig

Migration Guide

  • Use App::configure_sets instead of App::configure_set
  • Use Schedule::configure_sets instead of Schedule::configure_set

@github-actions
Copy link
Copy Markdown
Contributor

Example alien_cake_addict failed to run, please try running it locally and check the result.

@geieredgar geieredgar force-pushed the configure-sets branch 4 times, most recently from 2ad6fc9 to 1ed6a01 Compare July 23, 2023 11:54
@mockersf mockersf added the A-ECS Entities, components, systems, and events label Jul 23, 2023
@joseph-gio joseph-gio self-requested a review July 26, 2023 19:48
@alice-i-cecile alice-i-cecile added this to the 0.12 milestone Aug 10, 2023
@github-actions
Copy link
Copy Markdown
Contributor

Example alien_cake_addict failed to run, please try running it locally and check the result.

Copy link
Copy Markdown
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

I really like the refactor; this is way cleaner and easier to review. I think we can make the doc strings nicer, but as long as you explicitly work in the concept of "chaining == system ordering" I'll be happy to approve.

@github-actions
Copy link
Copy Markdown
Contributor

Example alien_cake_addict failed to run, please try running it locally and check the result.

4 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

Example alien_cake_addict failed to run, please try running it locally and check the result.

@github-actions
Copy link
Copy Markdown
Contributor

Example alien_cake_addict failed to run, please try running it locally and check the result.

@github-actions
Copy link
Copy Markdown
Contributor

Example alien_cake_addict failed to run, please try running it locally and check the result.

@github-actions
Copy link
Copy Markdown
Contributor

Example alien_cake_addict failed to run, please try running it locally and check the result.

geieredgar and others added 7 commits August 26, 2023 22:52
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
@hymm hymm added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Sep 5, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Sep 5, 2023
@alice-i-cecile alice-i-cecile added M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide C-Code-Quality A section of code that is hard to understand or change C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Sep 5, 2023
Merged via the queue into bevyengine:main with commit 118509e Sep 5, 2023
@cart cart mentioned this pull request Oct 13, 2023
43 tasks
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
…#9247)

# Objective

- Fixes bevyengine#9244.

## Solution


- Changed the `(Into)SystemSetConfigs` traits and structs be more like
the `(Into)SystemConfigs` traits and structs.
- Replaced uses of `IntoSystemSetConfig` with `IntoSystemSetConfigs`
- Added generic `ItemConfig` and `ItemConfigs` types.
- Changed `SystemConfig(s)` and `SystemSetConfig(s)` to be type aliases
to `ItemConfig(s)`.
- Added generic `process_configs` to `ScheduleGraph`.
- Changed `configure_sets_inner` and `add_systems_inner` to reuse
`process_configs`.

---

## Changelog

- Added `run_if` to `IntoSystemSetConfigs`
- Deprecated `Schedule::configure_set` and `App::configure_set`
- Removed `IntoSystemSetConfig`

## Migration Guide

- Use `App::configure_sets` instead of `App::configure_set`
- Use `Schedule::configure_sets` instead of `Schedule::configure_set`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change C-Usability A targeted quality-of-life change that makes Bevy easier to use M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate configure_set & make configure_sets work for single params.

4 participants