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

[Merged by Bors] - Remove .system() #4499

Closed
wants to merge 3 commits into from

Conversation

DJMcNab
Copy link
Member

@DJMcNab DJMcNab commented Apr 16, 2022

Free at last!

Objective

  • Using .system() is no longer needed anywhere, and anyone using it will have already gotten a deprecation warning.
  • [Merged by Bors] - Deprecate .system #3302 was a super special case for .system(), since it was so prevelant. However, that's no reason.
  • Despite it being deprecated, another couple of uses of it have already landed, including in the deprecating PR.
    • These have all been because of doc examples having warnings not breaking CI - 🎟️?

Solution

  • Remove it.
  • It's gone

Changelog

  • You can no longer use .system()

Migration Guide

  • You can no longer use .system(). It was deprecated in 0.7.0, and you should have followed the deprecation warning then. You can just remove the method call.

image

crates/bevy_ecs/src/system/query.rs Outdated Show resolved Hide resolved
Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com>
@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Apr 16, 2022
@alice-i-cecile alice-i-cecile added A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Triage This issue needs to be labelled labels Apr 16, 2022
@DJMcNab DJMcNab added the C-Breaking-Change A breaking change to Bevy's public API that needs to be noted in a migration guide label Apr 16, 2022
@cart
Copy link
Member

cart commented Apr 16, 2022

bors r+

bors bot pushed a commit that referenced this pull request Apr 16, 2022
Free at last!

# Objective

- Using `.system()` is no longer needed anywhere, and anyone using it will have already gotten a deprecation warning.
- #3302 was a super special case for `.system()`, since it was so prevelant. However, that's no reason.
- Despite it being deprecated, another couple of uses of it have already landed, including in the deprecating PR.
   - These have all been because of doc examples having warnings not breaking CI - 🎟️?

## Solution

- Remove it.
- It's gone

---

## Changelog

- You can no longer use `.system()`

## Migration Guide

- You can no longer use `.system()`. It was deprecated in 0.7.0, and you should have followed the deprecation warning then. You can just remove the method call.

![image](https://user-images.githubusercontent.com/36049421/163688197-3e774a04-6f8f-40a6-b7a4-1330e0b7acf0.png)

- Thanks to the @TheRawMeatball  for producing
@bors bors bot changed the title Remove .system() [Merged by Bors] - Remove .system() Apr 16, 2022
@bors bors bot closed this Apr 16, 2022
@DJMcNab DJMcNab deleted the magnum_opus_uno branch April 17, 2022 06:01
@Nilirad
Copy link
Contributor

Nilirad commented Apr 17, 2022

Migration guide for doctests

[EDITED] Thanks @DJMcNab for pointing out the more correct API.

Use bevy_ecs::system::assert_is_system (or bevy::ecs::system::assert_is_system) instead.

It is included in the prelude. ( EDIT 2: apparently my brain stops working sometimes)

- my_system.system();
+ bevy::ecs::system::assert_is_system(my_system);

@DJMcNab
Copy link
Member Author

DJMcNab commented Apr 17, 2022

Why would you use IntoSystem::into_system instead of bevy_ecs::system::assert_is_system()?

@Nilirad
Copy link
Contributor

Nilirad commented Apr 17, 2022

Because I didn't know it existed 😝

aevyrie pushed a commit to aevyrie/bevy that referenced this pull request Jun 7, 2022
Free at last!

# Objective

- Using `.system()` is no longer needed anywhere, and anyone using it will have already gotten a deprecation warning.
- bevyengine#3302 was a super special case for `.system()`, since it was so prevelant. However, that's no reason.
- Despite it being deprecated, another couple of uses of it have already landed, including in the deprecating PR.
   - These have all been because of doc examples having warnings not breaking CI - 🎟️?

## Solution

- Remove it.
- It's gone

---

## Changelog

- You can no longer use `.system()`

## Migration Guide

- You can no longer use `.system()`. It was deprecated in 0.7.0, and you should have followed the deprecation warning then. You can just remove the method call.

![image](https://user-images.githubusercontent.com/36049421/163688197-3e774a04-6f8f-40a6-b7a4-1330e0b7acf0.png)

- Thanks to the @TheRawMeatball  for producing
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
Free at last!

# Objective

- Using `.system()` is no longer needed anywhere, and anyone using it will have already gotten a deprecation warning.
- bevyengine#3302 was a super special case for `.system()`, since it was so prevelant. However, that's no reason.
- Despite it being deprecated, another couple of uses of it have already landed, including in the deprecating PR.
   - These have all been because of doc examples having warnings not breaking CI - 🎟️?

## Solution

- Remove it.
- It's gone

---

## Changelog

- You can no longer use `.system()`

## Migration Guide

- You can no longer use `.system()`. It was deprecated in 0.7.0, and you should have followed the deprecation warning then. You can just remove the method call.

![image](https://user-images.githubusercontent.com/36049421/163688197-3e774a04-6f8f-40a6-b7a4-1330e0b7acf0.png)

- Thanks to the @TheRawMeatball  for producing
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-Breaking-Change 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 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.

7 participants