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

🚧 Contribute Back from Knapsacking Pals #2178

Merged
merged 78 commits into from
Apr 23, 2024

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Apr 5, 2024

This builds from the notes and scripts of https://github.com/scientist-softserv/pals-to-knapsack

@samvera/hyku-code-reviewers

@jeremyf jeremyf force-pushed the working-on-moving-pals-to-knapsack branch from 97912b2 to 0ca6d93 Compare April 5, 2024 18:48
flex-direction: column;

&.active {
display: flex !important;

Choose a reason for hiding this comment

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

!important should not be used

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

#splash {
display: none;

Choose a reason for hiding this comment

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

Properties should be ordered align-items, background, display, flex-direction, height, justify-content, left, position, top, width, z-index

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

#splash {

Choose a reason for hiding this comment

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

Avoid using id selectors
Rule set contains (11/10) properties

width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite; /* Safari */

Choose a reason for hiding this comment

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

Use // comments everywhere

@jeremyf jeremyf force-pushed the working-on-moving-pals-to-knapsack branch 5 times, most recently from 6f29c63 to 25ff492 Compare April 11, 2024 14:09
@jeremyf jeremyf force-pushed the working-on-moving-pals-to-knapsack branch from fb5cc8e to baa4d60 Compare April 16, 2024 15:34
@jeremyf jeremyf marked this pull request as ready for review April 16, 2024 16:02
@jeremyf jeremyf added the major-ver for release notes label Apr 16, 2024
app/forms/video_embed_form_behavior.rb Outdated Show resolved Hide resolved
app/helpers/hyrax/iiif_helper.rb Outdated Show resolved Hide resolved
app/jobs/destroy_split_pages_job.rb Outdated Show resolved Hide resolved
app/jobs/file_set_index_job.rb Outdated Show resolved Hide resolved
app/jobs/work_index_job.rb Outdated Show resolved Hide resolved
app/models/admin_set_decorator.rb Outdated Show resolved Hide resolved
app/models/collection.rb Show resolved Hide resolved
app/models/file_set.rb Show resolved Hide resolved
ShanaLMoore
ShanaLMoore previously approved these changes Apr 18, 2024
@ShanaLMoore ShanaLMoore dismissed their stale review April 18, 2024 22:32

i selected the wrong option when i meant to add a comment

@ShanaLMoore ShanaLMoore changed the title 🚧 Grabbing some low hanging fruit 🚧 Contribute Back from Knapsacking Pals Apr 19, 2024
@ShanaLMoore ShanaLMoore force-pushed the working-on-moving-pals-to-knapsack branch from c32e5e7 to 62b7d9c Compare April 22, 2024 23:45
orangewolf
orangewolf previously approved these changes Apr 22, 2024
Copy link
Member

@orangewolf orangewolf left a comment

Choose a reason for hiding this comment

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

I have several questions and see a few issues (specifically with app/views/themes/institutional_repository/hyrax/homepage/_recent_document.html.erb and its friends). However, given how big this PR is. I would support answering the questions and opening tickets for the issues, merging and then addressing the issues in seperate PRs.


##
# Ensure the current user matches the requested URL.
Hyrax::Dashboard::ProfilesController.before_action :users_match!, only: %i[show edit update]
Copy link
Member

Choose a reason for hiding this comment

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

does this mean a user can only see their own profile and no one elses? I get edit/update, I question show

super
return if @subcollection_docs.blank?

@subcollection_docs.sort_by! { |doc| doc.title.first&.downcase }
Copy link
Member

Choose a reason for hiding this comment

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

is this really the right global behavior?

@@ -0,0 +1,59 @@
# frozen_string_literal: true

# OVERRIDE Bulkrax v5.3.0 to add a geonames lookup for the `based_near` proprerty
Copy link
Member

Choose a reason for hiding this comment

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

this belongs in bulkrax proper likely

@@ -0,0 +1,25 @@
# frozen_string_literal: true

# OVERRIDE Hyrax hyrax-v3.5.0 to require Hyrax::Download so the method below doesn't fail
Copy link
Member

Choose a reason for hiding this comment

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

I dont think I know what this code does. does it fix a Hyrax bug?

@@ -1,10 +1,7 @@
<%# OVERRIDE Hyrax v5.0.0rc2 to support shared search %>
<% model = document.hydra_model %>
<%# OVERRIDE Hyrax v5.0.1 to collection badge and markdown of links %>
Copy link
Member

Choose a reason for hiding this comment

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

are we sure these two do not conflict? I feel like maybe we are breaking something in shared search here

@@ -0,0 +1,14 @@
# frozen_string_literal: true
Copy link
Member

Choose a reason for hiding this comment

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

I think this was deleted from hyku on purpose.

@@ -54,7 +54,7 @@
it "sets recent documents in the right order" do
get :index
expect(response).to be_successful
expect(assigns(:recent_documents).length).to eq 3
# expect(assigns(:recent_documents).length).to eq 3
Copy link
Member

Choose a reason for hiding this comment

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

this line should just be removed

@@ -16,7 +16,7 @@
it 'creates the work' do
visit '/'
click_link "Share Your Work"
expect(page).to have_button "Create work"
# expect(page).to have_button "Create work"
Copy link
Member

Choose a reason for hiding this comment

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

?

t wants a solr document. lets be consistant about what we give it

This change parallels one from Adventist.

fixes scientist-softserv/adventist-dl#750

ref:
- #2190
@ShanaLMoore ShanaLMoore merged commit 1d480ff into main Apr 23, 2024
3 of 4 checks passed
@ShanaLMoore ShanaLMoore deleted the working-on-moving-pals-to-knapsack branch April 23, 2024 01:01
@ShanaLMoore
Copy link
Collaborator

ShanaLMoore commented Apr 23, 2024

I captured your comments here and will create issues/address them.

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

Successfully merging this pull request may close these issues.

6 participants