Add RSS buttons if the feature is enabled on the rest side#1444
Add RSS buttons if the feature is enabled on the rest side#1444tdonohue merged 16 commits intoDSpace:mainfrom
Conversation
|
This pull request introduces 2 alerts when merging 0a9b4d7 into efe51aa - view on LGTM.com new alerts:
|
tdonohue
left a comment
There was a problem hiding this comment.
@ConfusionOrb221 : First off thanks for this submission. I've tested this locally today, and it's not quite working as expected. I'm testing this using yarn start (production / SSR mode), and here's what I see:
- With default settings (defaults in dspace.cfg/local.cfg), I'm seeing the RSS feed icon on the homepage & Community/Collection pages, but if I click it, I get an error: "OpenSearch Service is disabled". It appears this might be because
websvc.opensearch.enable = falseby default.. and even though this PR checks that value, it's still displaying the RSS icon when it's disabled. It looks like the issue might be that there are two configurations here... there'swebui.feed.enable = true(so feeds enabled by default), but OpenSearch is disabled by default. - Once I set
websvc.opensearch.enable = true, everything works properly.
A few more notes inline...primarily some code questions & requests to add required TypeDocs / comments (Please keep in mind that we require minimal TypeDoc/JavaDoc comments both for frontend & backend. I noticed neither PR has any code comments.)
|
@ConfusionOrb221 : I've moved this over onto our 7.3 board (along with the corresponding backend PR DSpace/DSpace#8064), in the hopes that you'll find time to get this updated for our 7.3 release. Currently, these PRs have been stalled for over a month & have merge conflicts...but if you can find time to fix them up, I'll make sure it gets reviewed. Thanks |
1ef87aa to
17f843e
Compare
|
@ConfusionOrb221 : Somehow this PR is in an odd state where none of the test ran the last time you pushed changes. It also has code conflicts. If you could find time to resolve the conflicts & push the updates to this PR, hopefully that'll help restart the tests. Once that's done we can make sure to get this reassigned to reviewers. Thanks! |
17f843e to
0d3e7fb
Compare
|
This pull request introduces 4 alerts when merging 0d3e7fb into 4588715 - view on LGTM.com new alerts:
|
|
Hmm so I rebased this code to prevent the merge conflicts and all my tests are still passing now but I am getting some tests failures in BrowseByComponent due to being unable to find a provider for GroupDataService.
Unsure what is going on here with that seems unrelated to my code but I could be wrong. |
b22e6ff to
c246908
Compare
|
@ConfusionOrb221 : Thanks for the recent updates here! Just a quick note though, this PR has minor merge conflicts now...likely caused after I merged #1560 (earlier today). If you could find time to resolve them that'd help the final review/testing of this. Thanks! |
c246908 to
67fb53a
Compare
|
@tdonohue Everything should be good now fixed up the lint issue and all tests are passing now so should be good to move forward with this. |
…community and collection, link-head service adds the rss to the head element
af78499 to
0791287
Compare
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @ConfusionOrb221 ! This PR now looks good to me, as the RSS feed is appearing ONLY on the homepage & community/collection pages. That said, in testing today, I've found that it's still returning items in reverse order, but that appears to be a backend bug, so I'll note that in your other PR.
@artlowel : Could you give this another look when you get the chance? Keep in mind the feed will only appear on homepage & community/collection pages now.
75ec837 to
3a61125
Compare
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks again @ConfusionOrb221 ... retested with latest changes and everything is working properly. The feed is now ordered by dc.date.accessioned desc as expected.
References
Add references/links to any related issues or PRs. These may include:
Description
Adds rss feed button that will take you to an rss page based on the current search and if you aren't on the search page it'll base it off of scope e.g on community page the scope is that community pages uuid. Also adds the rss href link as a
<link>tag to the Head element on any page the rss button exists.Instructions for Reviewers
List of changes in this PR:
Need DSpace running with the other pr with objects indexed then click on the rss button on any page it exists on. Try some searches to verify that the rss respects what you type into search.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.