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

[bugfix] dynamic property render in snippets #1364

Merged
merged 34 commits into from
Feb 22, 2023

Conversation

sthajay
Copy link
Contributor

@sthajay sthajay commented Jan 17, 2023

Addresses: #1355
Demo:

Screen.Recording.2023-02-19.at.23.05.15.mov

@github-actions
Copy link

Deployed review-app can be viewed at https://review-1364.violet-test.net

@donrestarone
Copy link
Contributor

@ajaystha42 did you test your code? The generated template renders nothing because it scopes by all attributes:

Screen Shot 2023-01-17 at 3 06 36 PM

Screen Shot 2023-01-17 at 3 05 53 PM

@github-actions
Copy link

Deployed review-app can be viewed at https://review-1364.violet-test.net

@sthajay
Copy link
Contributor Author

sthajay commented Jan 17, 2023

@ajaystha42 did you test your code? The generated template renders nothing because it scopes by all attributes:

Screen Shot 2023-01-17 at 3 06 36 PM Screen Shot 2023-01-17 at 3 05 53 PM

@donrestarone , it looks like the scoping fails for an array only. I will fix it!

@donrestarone
Copy link
Contributor

review this PR in the CMS: restarone/comfortable-mexican-sofa#12

Gemfile.lock Outdated
@@ -577,4 +577,4 @@ RUBY VERSION
ruby 3.0.0p0

BUNDLED WITH
2.1.4
2.1.4
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this change

@donrestarone
Copy link
Contributor

@ajaystha42 could you add a test to verify that the correct snippet is rendered?

@sthajay sthajay force-pushed the ajaystha42bugfix/dynamic_property_render branch from 7287be3 to 989b9a7 Compare February 11, 2023 22:57
@github-actions
Copy link

Deployed review-app can be viewed at https://review-1364.violet-test.net

@donrestarone
Copy link
Contributor

copy pasting snippet is still not working, we need to verify that the generated snippet works out of the box

Screen Shot 2023-02-16 at 10 15 39 PM

Screen Shot 2023-02-16 at 10 15 21 PM

@Ayon95 could you take a look? This issue is affecting sipshucksip.com

@Ayon95
Copy link
Contributor

Ayon95 commented Feb 19, 2023

@donrestarone The index snippet is working now. The snippet that was being used was not right. Can you create some resources for test API namespace and check if they're being rendered on the page? The snippet content is showing up.

https://review-1364.violet-test.net/tester

snippet

snippet-content

tester-page

@sthajay
Copy link
Contributor Author

sthajay commented Feb 20, 2023

@donrestarone Please review this PR. I will point to the cms/restarone once you merge it in the main repo from the forked repo. Also, here is the video to demonstrate the working of dynamic snippets:

Screen.Recording.2023-02-19.at.23.05.15.mov

@donrestarone
Copy link
Contributor

@ajaystha42 there are 2 PR's of yours that do the same thing on https://github.com/restarone/comfortable-mexican-sofa/pulls

this PR is using the branch here: restarone/comfortable-mexican-sofa#13 and as I have mentioned before, the default generated snippet is not working.

Lets revisit this with fresh eyes later

@github-actions
Copy link

Deployed review-app can be viewed at https://review-1364.violet-test.net

@github-actions
Copy link

Deployed review-app can be viewed at https://review-1364.violet-test.net

@sthajay sthajay self-assigned this Feb 22, 2023
@sthajay
Copy link
Contributor Author

sthajay commented Feb 22, 2023

@donrestarone The snippets are working now: Please have a look here: https://review-1364.violet-test.net/test-page
Screenshot 2023-02-22 at 09 34 53
Screenshot 2023-02-22 at 09 34 36
Screenshot 2023-02-22 at 09 34 21

@github-actions
Copy link

Deployed review-app can be viewed at https://review-1364.violet-test.net

@donrestarone
Copy link
Contributor

LGTM on the review app, deploying RC ✅

After release candidate is verified, we can merge restarone/comfortable-mexican-sofa#16, bump the version on the CMS and change to the latest version before merging to master

@donrestarone donrestarone changed the base branch from master to rc February 22, 2023 21:31
@donrestarone donrestarone merged commit a06b1a9 into rc Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants