-
Notifications
You must be signed in to change notification settings - Fork 0
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
Title of Metadata fields displaying on search page displaying inaccurately #469
Comments
dev notesWe found the cause of the missing translation error, for the adventist search result page. |
We also noticed that there may be a dog biscuits auto loading issue, which could be the ultimate problem. When we make a change to the catalog controller, the correct labels suddenly appear 🙃 /_[tesimb]+$/ |
Prior to this change, the applications specific translations were not loaded. Dogbiscuits were assuming the translations were already loaded. Ref: #227
This passes SoftServ QA: See attached screenshot. tested on: |
I'm seeing the titles display properly across the board. Thanks! |
Prior to this change, assuming my default translation was "en" when I called the following—`I18n.t('dog_biscuits.fields.date_issued')`—I would get `Translation missing: en.dog_biscuits.fields.date_issued`. We had added DogBiscuits into that path but we had not reloaded the back-end. Further, the catalog controller was no longer doing useful work. The `Rails.root` is `hyrax-webapp`; which would already be working. For more on this anti-pattern, see [Potential Issues Around Knapsack and Rails.root][1]. With this change, I have a small test to verify that dog biscuits translations are in fact loaded. Related to: - https://github.com/scientist-softserv/adventist-dl/issues/611 - https://github.com/scientist-softserv/adventist-dl/issues/227 - scientist-softserv/adventist-dl#244 [1]: #60)
Prior to this change, assuming my default translation was "en" when I called the following—`I18n.t('dog_biscuits.fields.date_issued')`—I would get `Translation missing: en.dog_biscuits.fields.date_issued`. We had added DogBiscuits into that path but we had not reloaded the back-end. Further, the catalog controller was no longer doing useful work. The `Rails.root` is `hyrax-webapp`; which would already be working. For more on this anti-pattern, see [Potential Issues Around Knapsack and Rails.root][1]. With this change, I have a small test to verify that dog biscuits translations are in fact loaded. Related to: - https://github.com/scientist-softserv/adventist-dl/issues/611 - https://github.com/scientist-softserv/adventist-dl/issues/227 - scientist-softserv/adventist-dl#244 [1]: #60)
Prior to this change, assuming my default translation was "en" when I called the following—`I18n.t('dog_biscuits.fields.date_issued')`—I would get `Translation missing: en.dog_biscuits.fields.date_issued`. We had added DogBiscuits into that path but we had not reloaded the back-end. Further, the catalog controller was no longer doing useful work. The `Rails.root` is `hyrax-webapp`; which would already be working. For more on this anti-pattern, see [Potential Issues Around Knapsack and Rails.root][1]. With this change, I have a small test to verify that dog biscuits translations are in fact loaded. Related to: - https://github.com/scientist-softserv/adventist-dl/issues/611 - https://github.com/scientist-softserv/adventist-dl/issues/227 - scientist-softserv/adventist-dl#244 [1]: #60)
Prior to this change, assuming my default translation was "en" when I called the following—`I18n.t('dog_biscuits.fields.date_issued')`—I would get `Translation missing: en.dog_biscuits.fields.date_issued`. We had added DogBiscuits into that path but we had not reloaded the back-end. Further, the catalog controller was no longer doing useful work. The `Rails.root` is `hyrax-webapp`; which would already be working. For more on this anti-pattern, see [Potential Issues Around Knapsack and Rails.root][1]. With this change, I have a small test to verify that dog biscuits translations are in fact loaded. Related to: - https://github.com/scientist-softserv/adventist-dl/issues/611 - https://github.com/scientist-softserv/adventist-dl/issues/227 - scientist-softserv/adventist-dl#244 [1]: #60)
Prior to this change, we had ensured knapsack's translations took precedence over Hyku's. However, that ensuring occurred at the after_initialize. We had missed the CatalogController's translation moment as well. When we specify the index fields in the CatalogController, blacklight caches those translations. However, in the case of dogbiscuits, those are not yet loaded. Which results in a translation error; even though we later load the dog biscuits translations. With this change, I have added two tests to: 1. verify that translations are correct for the catalog controller 2. that when the app boots, the Knapsack translations take precedence over Hyku. Related to: - https://github.com/scientist-softserv/adventist-dl/issues/611 - https://github.com/scientist-softserv/adventist-dl/issues/227 - scientist-softserv/adventist-dl#244 - #63 [1]: #60)
Prior to this change, we had ensured knapsack's translations took precedence over Hyku's. However, that ensuring occurred at the after_initialize. We had missed the CatalogController's translation moment as well. When we specify the index fields in the CatalogController, blacklight caches those translations. However, in the case of dogbiscuits, those are not yet loaded. Which results in a translation error; even though we later load the dog biscuits translations. With this change, I have added two tests to: 1. verify that translations are correct for the catalog controller 2. that when the app boots, the Knapsack translations take precedence over Hyku. Related to: - https://github.com/scientist-softserv/adventist-dl/issues/611 - https://github.com/scientist-softserv/adventist-dl/issues/227 - scientist-softserv/adventist-dl#244 - #63 [1]: #60)
Related to: - https://github.com/scientist-softserv/adventist-dl/issues/611 - https://github.com/scientist-softserv/adventist-dl/issues/227 - scientist-softserv/adventist-dl#244 - #63 - #60 Co-authored-by: LaRita Robinson <larita@scientist.com>
Related to: - https://github.com/scientist-softserv/adventist-dl/issues/611 - https://github.com/scientist-softserv/adventist-dl/issues/227 - scientist-softserv/adventist-dl#244 - #63 - #60 Co-authored-by: LaRita Robinson <larita@scientist.com>
Summary
In client meeting 1-17, Katharine confirmed the metadata fields being displayed hit expectations, however the title's were showing inaccurately, as "translation missing". See link for reference.
Acceptance Criteria
Before:
Testing Instructions
After:
Notes
Implementation suggestion:
Find the view partial, and locate the mapping for the fields. It may look something like
en.helpers.action.importer.new
In the above example, you should be able to trace the mapping to the en locale file. Missing translation means that the mapping doesn't exist for that file, so you'll need to add one.
The last step is to run translations for the project, so that it can convert the newly added english mapping to all the languages the project supports. But you may run into a blocker on this part (and it's ok to create a separate ticket for this).
Our google account needed to do this doesn't have any money on it. Crystal posted a Q to Rob in slack for how to resolve this.
The text was updated successfully, but these errors were encountered: