-
Notifications
You must be signed in to change notification settings - Fork 3
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
Hard-coded server name #30
Comments
This is what's causing the CWRC lookups to fail - you just beat me to posting about it, @jefferya and also dug up the cause. @ajmacdonald , can you please look into this before #29 (I'll add it to the top of you "in progress" pile |
you mean it's not been deployed to dev-06 yet, @ajmacdonald ? If so, please do it as soon as possible, as Brad will need to pull it into the code for beta. |
@ilovan @jefferya @bradklaver does it need to be deployed on dev-06 before beta? If so, this code won't work because the value returned by dev-06 lookup is https://cwrc-dev-06.srv.ualberta.ca/islandora/cwrc_entities/v1/search/person but the cwrcApiUrl is https://cwrc-dev-06.srv.ualberta.ca/cwrc/api and therefore won't work properly with
On beta the lookup is https://beta.cwrc.ca/islandora/cwrc_entities/v1/search/person and the cwrcApiUrl value is https://beta.cwrc.ca/islandora/cwrc_entities/v1 |
I'll let @jefferya and @bradklaver weigh in on that one. |
@ajmacdonald @ilovan - Config on cwrc-dev-06 using the default - changed to mirror beta.cwrc.ca. Does this change help? |
@ilovan @jefferya yes that helps. I just updated dev-06 with that change and some others. Unfortunately, one of the other changes ( cwrc/CWRC-WriterBase#93 (comment) ) caused some css conflicts which is messing up how the structure tree gets rendered. I'm working on resolving that now. |
Fixed and deployed on dev-06 cwrc/CWRC-WriterBase@79cb0fa |
Great, thanks, @ajmacdonald . |
@ilovan @bradklaver the latest version up here is the one to use: 4a6a4bb |
@ajmacdonald , this seems to work now on Beta, but not on dev-06 : can you look into it? From what Jeff was saying, the same code should work on both beta and dev-06 now. |
@ilovan It's trying to get the entity from commons.cwrc.ca, which redirects to beta.cwrc.ca, so that's why it works on beta. |
Could try: In the config, |
@jefferya I tried setting it (it was previously blank) but couldn't see any changes reflected in the js global |
I'm taking a look at this again on dev-02. I changed the It should be noted that to see the changed value, clearing the Drupal cache was required, using the In the descriptive/help text for |
@ajmacdonald , this issue is similar, but in the entity forms repository: cwrc/cwrc-entity-management-forms-static#57 |
Value should be pulled from module's config setting that are passed form Drupal into JS property- Drupal.settings.CWRCWriter.cwrcApiUrl
https://github.com/cwrc/Islandora-CWRC-Writer/blob/master/js/app.js#L4
To reproduce:
cwrc-dev-06
onbeta.cwrc.ca
due the the hard-coded server name - no CWRC search results.The text was updated successfully, but these errors were encountered: