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

fix(compiler): Support dynamic slot names #9605

Merged
merged 17 commits into from
Jan 18, 2024
Merged

Conversation

MoustaphaDev
Copy link
Member

@MoustaphaDev MoustaphaDev commented Jan 4, 2024

Changes

Previously, using variables as slot names within loops was not possible because of limitations in the compiler.
Those limitations were addressed and resolved in the linked compiler PR

Testing

  • All existing slot tests pass
  • Added test fixtures using a for and a map loops to generate slot with dynamic names
  • Fixed a failing test which is unrelated to this PR

Docs

I'll make a docs PR as this wasn't possible before

Copy link

changeset-bot bot commented Jan 4, 2024

🦋 Changeset detected

Latest commit: 7ec190d

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jan 4, 2024
@MoustaphaDev MoustaphaDev force-pushed the feat/dynamic-slot-names branch from 70c1d77 to 04939ac Compare January 11, 2024 23:18
We were expecting the source code to produce an error, but in
2.4.0 of the compiler, that generates valid code
@MoustaphaDev MoustaphaDev marked this pull request as ready for review January 12, 2024 20:32
@MoustaphaDev MoustaphaDev changed the title WIP: dynamic slot names experiment Support dynamic slot names Jan 12, 2024
@MoustaphaDev MoustaphaDev changed the title Support dynamic slot names fix(compiler): Support dynamic slot names Jan 12, 2024
Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

This all looks great!

@natemoo-re natemoo-re merged commit 8ce40a4 into main Jan 18, 2024
13 checks passed
@natemoo-re natemoo-re deleted the feat/dynamic-slot-names branch January 18, 2024 19:56
@astrobot-houston astrobot-houston mentioned this pull request Jan 18, 2024
MoustaphaDev added a commit that referenced this pull request Feb 6, 2024
Princesseuh added a commit that referenced this pull request Feb 6, 2024
* Revert "fix(compiler): Support dynamic slot names (#9605)"

This reverts commit 8ce40a4.

* chore: changeset

* Update .changeset/weak-pans-sit.md

* chore: bump compiler version

* fix failing test

We were expecting the source code to produce an error, but in
2.4.0 of the compiler, that generates valid code

---------

Co-authored-by: Erika <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants