https://github.com/jechol/ash_nested_calculation_bug
https://github.com/jechol/ash_nested_calculation_bug
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jechol/ash_nested_calculation_bug
- Owner: jechol
- Created: 2025-01-17T07:35:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-18T02:15:46.000Z (over 1 year ago)
- Last Synced: 2025-03-14T19:47:02.117Z (over 1 year ago)
- Language: Elixir
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ash Nested Calculation Bug Reproduction
This repository demonstrates a crash issue related to nested calculations not being properly loaded in Ash.
## Reproducing the Issue
To observe the crash:
1. Clone this repository.
2. Ensure you are on the `main` branch.
3. Run the following commands:
```bash
mix ecto.reset
mix test
```
4. You will observe the test failure due to a crash caused by the nested calculation not loading properly.
## Ash 3.4.52 Behavior
To verify that the issue does not occur in Ash 3.4.52:
1. Switch to the `with-ash-3.4.52` branch:
```bash
git checkout with-ash-3.4.52
```
2. Run the same commands:
```bash
mix ecto.reset
mix test
```
3. All tests will pass, confirming that this issue does not occur in Ash 3.4.52.
## Ash 3.4.53 - 3.4.55 Behavior
To confirm that the issue persists in Ash versions 3.4.53 to 3.4.55:
1. Switch to the relevant branch for each version (`with-ash-3.4.53`, `with-ash-3.4.54`, or `with-ash-3.4.55`):
```bash
git checkout with-ash-3.4.53
git checkout with-ash-3.4.54
git checkout with-ash-3.4.55
```
2. Run the commands for each branch:
```bash
mix ecto.reset
mix test
```
3. You will observe that the tests fail in all these versions due to the same issue.
## Additional Information
This repository is structured to make it easy to isolate and test the issue. For any questions or further clarifications, feel free to open an issue or submit a pull request.