You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constructor enabled auto on the web component, so the browser requested the feed again through iron-ajax after the server had already fetched it and sent the items. The extra request fails when the feed does not allow cross-origin requests, and when it succeeds its response replaces the items rendered from the server response. The constructor no longer enables auto, so the feed is fetched only once, on the server.
Note: if the feed cannot be fetched from the server but can from the browser (for example, it is only reachable from the user's network or needs the user's cookies), the component now shows the error item instead of the items loaded by the browser. Calling setAuto(true) restores the previous behavior.
FlowingCode/RssItemsAddon#37: Updates server-side feed decoding to use UTF-8 when no charset is declared; the linked issue notes that browser-side fetching can bypass this handling.
Suggested reviewers: scardanzan
Merge Risk: Minimal · up to ba895
This change stops the browser from fetching the feed again after the server has already fetched it. That avoids cross-origin failures and server-rendered items being overwritten. Feeds reachable only from the user's network or that need the user's cookies will now show the error item unless setAuto(true) is called. No further merge-blocking risk is evident.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title 'fix: fetch the feed only on the server' matches the main change: the RssItems constructor no longer calls setAuto(true), so the browser stops re-fetching the feed after the server has fetch…
Linked Issues check
[#41] The requirement is that the feed is fetched only once, on the server. The reviewed head removes the setAuto(true) call from the RssItems constructor (raw summary: +0/-1 in RssItems.java). In…
Out of Scope Changes check
The change set is limited to one removed line in the RssItems constructor, per the supplied raw summary. The removal directly implements #41, which requires that the browser not request the feed aga…
Full details: Title check
Explanation
The title 'fix: fetch the feed only on the server' matches the main change: the RssItems constructor no longer calls setAuto(true), so the browser stops re-fetching the feed after the server has fetched it. The title is specific and describes the primary behavior change. It uses a conventional-commit prefix and is 8 words long.
Full details: Linked Issues check
Explanation
[#41] The requirement is that the feed is fetched only once, on the server. The reviewed head removes the setAuto(true) call from the RssItems constructor (raw summary: +0/-1 in RssItems.java). In rss-items.js at head, the auto property defaults to false, and the template binds <iron-ajax ... auto="[[auto]]"> to it. With the default, iron-ajax does not issue a browser request. The server-side fetch and xmlToItems path remain. The browser request therefore no longer occurs by default, which meets the issue expectation. Limits: the whole-PR diff could not be read, so the removal relies on the supplied summary and the head file. No automated test is required by the issue, and none was found in the supplied evidence. The auto attribute still appears in the component's doc example at the top of rss-items.js. This is documentation only and does not change runtime behavior.
Full details: Out of Scope Changes check
Explanation
The change set is limited to one removed line in the RssItems constructor, per the supplied raw summary. The removal directly implements #41, which requires that the browser not request the feed again. No unrelated code, refactoring, or documentation changes are reported. The PR description's note that setAuto(true) restores the previous behavior is a documented consequence of the same change, not extra scope. Limit: the whole-PR diff could not be read, so this conclusion relies on the supplied summary.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The constructor enabled
autoon the web component, so the browser requested the feed again throughiron-ajaxafter the server had already fetched it and sent the items. The extra request fails when the feed does not allow cross-origin requests, and when it succeeds its response replaces the items rendered from the server response. The constructor no longer enablesauto, so the feed is fetched only once, on the server.Note: if the feed cannot be fetched from the server but can from the browser (for example, it is only reachable from the user's network or needs the user's cookies), the component now shows the error item instead of the items loaded by the browser. Calling
setAuto(true)restores the previous behavior.Close #41
Summary by CodeRabbit