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

GUI Update: Select correct item in feed when loading feed with Newest First or Default Ordering #1791

Merged
merged 1 commit into from
May 24, 2022

Conversation

AccaliaDeElementia
Copy link
Contributor

Quick update to ContentController.js to correctly set the active element when newest first or default ordering is active for a feed or view.

Should resolve #1324 by making behavior match expectations

Signed-off-by: Accalia <Accalia@Elementia.me>
@codecov-commenter
Copy link

Codecov Report

Merging #1791 (2f45fb8) into master (fca05d5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master    #1791   +/-   ##
=========================================
  Coverage     91.62%   91.63%           
- Complexity      778      780    +2     
=========================================
  Files            65       65           
  Lines          2724     2739   +15     
=========================================
+ Hits           2496     2510   +14     
- Misses          228      229    +1     
Impacted Files Coverage Δ
lib/Db/Item.php 100.00% <100.00%> (ø)
lib/Command/ExploreGenerator.php 100.00% <0.00%> (ø)
lib/Explore/RecommendedSites.php 0.00% <0.00%> (ø)
lib/Controller/FeedController.php 100.00% <0.00%> (ø)
lib/Controller/PageController.php 100.00% <0.00%> (ø)
lib/Fetcher/Client/FeedIoClient.php 100.00% <0.00%> (ø)
lib/Controller/FeedApiController.php 100.00% <0.00%> (ø)
lib/Db/Feed.php 99.05% <0.00%> (+<0.01%) ⬆️
lib/Fetcher/FeedFetcher.php 79.86% <0.00%> (+0.13%) ⬆️
lib/Config/FetcherConfig.php 64.00% <0.00%> (+1.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50c8960...2f45fb8. Read the comment docs.

@Grotax Grotax merged commit 09e06fd into nextcloud:master May 24, 2022
@micbase
Copy link
Contributor

micbase commented Jun 24, 2022

@AccaliaDeElementia It seems this change breaks the item selection when "Reverse ordering(oldest on top)" is checked. If this checkbox is not selected, I think the behavior is expected. From the server response, it looks like the results are already sorted based on that setting, so I think we probably just wanna return the first item regardless what the ordering is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When opening a feed, oldest article is selected instead of newest.
5 participants