Skip to content

DEV: Improve quoted post handling and enhance decorator stability #33111

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
merged 3 commits into from
Jun 10, 2025

Conversation

megothss
Copy link
Contributor

@megothss megothss commented Jun 6, 2025

Added topic tracking to posts and improved quoted post handling by linking quoted posts to their parent topic.

Introduced error handling for decorators to prevent crashes and ensure smoother operation in case of unexpected issues.

Added `topic` tracking to posts and improved quoted post handling by linking quoted posts to their parent topic. Introduced error handling for decorators to prevent crashes and ensure smoother operation in case of unexpected issues. These changes enhance reliability and data consistency across related components.
@megothss megothss marked this pull request as draft June 6, 2025 20:46
This commit introduces tests to ensure proper handling of nested quotes in the Glimmer Post Stream mode. It verifies that quote toggles expand and collapse correctly, including nested quotes within outer quotes. A new server fixture is also added to simulate the required post data for testing.
@megothss megothss marked this pull request as ready for review June 9, 2025 19:11
// the application from crashing

// eslint-disable-next-line no-console
console.error(e);
Copy link
Member

Choose a reason for hiding this comment

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

Can we make it throw in qunit/system-spec environments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

In testing environments, re-throw errors from decorators for better visibility and debugging. In non-testing scenarios, log the errors to the console to avoid crashing the application.
@megothss megothss merged commit cf9e4de into main Jun 10, 2025
16 checks passed
@megothss megothss deleted the dev/fix-nexted-quoted-content branch June 10, 2025 21:32
megothss added a commit that referenced this pull request Jun 11, 2025
megothss added a commit that referenced this pull request Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants