-
Notifications
You must be signed in to change notification settings - Fork 4
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
T343 schoolie #514
T343 schoolie #514
Conversation
…lie fields; and, scholarly? (not working yet)
…esource_type for ETDs
…hey are scholarly
…eta tags; removes many overrides
app/gw_work.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kerchner Should this file be here? There's a copy in /app/models/gw_work.rb which makes sense, but not sure why we would want this in the /app root folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed it should not. I've removed it.
@alepbloyd Got it, I'll fix to skip those (leave as Will keep you posted when I update the rake task. |
@alepbloyd Please re-test |
update on testing this: I re-restored my scholarspace instance for the backups I have, and then ran the I did run into a situation where two or three minutes after the task finished, I seemed to get kicked out of my EC2 server and couldn't reconnect until I went into the AWS console and rebooted it. Now I can connect again fine, so not really sure what that was about - since it ran fine for hours and didn't have any issue until after the fact. I still need to look at the sitemap aspects of this, aiming to finish today/tomorrow. |
I just deleted the sitemap, and will check back on it tomorrow morning to verify if it regenerated as per the cron job. So beyond that one pending aspect, everything seems to be working! |
Thanks @alepbloyd ! Keep me posted on the sitemap. |
I'm going to remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This PR includes a rake task to migrate existing data, so it is recommended to test not only on:
resource_type
set toThesis or Dissertation
and should havedegree
populated. Populate at least one ETD with a masters flavored degree, and at least one ETD with a doctoral flavored degree. Ensure that at least one of the ETDs has 2 or more keywords populated.To Test
On an instance with existing ETDs
See prerequisite data above.
gwss:enumerate_degree_types
rake task and observe that the task prints out uniquedegree
values, with a count of eachgwss:reassign_etd_resource_types
task and observe that:resource_type
was reassigned to eitherMaster's Thesis
orDissertation
On a new instance
resource_type
set toMaster's Thesis
, and an ETD withresource_type
set toDissertation
. Ensure that at one of them has 2 or more keywords.On both new and migrated instances
<head>
tag contains a block similar to this:Scrape the URL from the
citation_pdf_url
meta tag above and confirm that the browser downloads (and does not display in-browser) the expected PDF.View the Page Source for a non-ETD work. Observe that
<head>
tag contains a block similar to this:with none of the other tags shown in the previous step.
Checking the sitemap
schoolie:sitemap
rake task creates the sitemap and that it looks similar to this:Note that the URL is going to be
scholarspace.library.gwu.edu
not your local server.lastmod
time seems to correspond to the time the work was last modifiedKnown issues
I cannot seem to get the sitemap generation to trigger using the
gwss:sitemap_queue_generate
rake task. The only difference is that I've replaced the contents ofSitemapRegenerateJob
to call the new rake task instead. Should I be concerned?Thoughts on the implementation
I am not crazy about having added
scholarly?
into the presenters rather than the work models, but I couldn't find a clean way to be able to ask the work'sscholarly?
from the HTML. The reason that I think ultimately it belongs on the work, is so that we might add more logic to the function that can answer true/false perhaps depending on the values of certain properties. Since we don't yet have such a requirement, this is something we can refactor later.Any feedback on the code/implementation is most welcome.