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

fix(KUI-1136): remove kursinfo-api dependency to this repository #386

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

amirhossein-haerian
Copy link
Contributor

I have removed everything related to kursinfo-API in this repository,
I have tested pages like:
kth.se/kurs-pm/HF1201/om-kurs-pm
https://app-r.referens.sys.kth.se/kurs-pm/SF1624/SF162420252-40001
on my local environment to be sure that the changes have not had any kind of side effect.
In my tests I focused on PDFs comming from kursinfostoragestage and PDFs that will be created for kurs-pm and the general functionalities.

@amirhossein-haerian amirhossein-haerian requested a review from a user June 12, 2024 06:52
Copy link
Contributor

@belanglos belanglos left a comment

Choose a reason for hiding this comment

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

Changes look good, but I'd like to figure out how PDF links work in REF. Let's discuss this.

Copy link
Contributor

Choose a reason for hiding this comment

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

I notice that we have a MEMO_STORAGE_URI in prod.parameters.json, but not in ref.parameters.json.
I'm wondering right now - how does this actually work in REF? Because PDFs work in ref, but how? Where do we get the correct link from? Do we run the app in REF with the dev or development environment set in node?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess, the correct fast way would be to add the parameter in ref.parameters as well (obviously the one pointing to REF)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was a really good point, it was my question as well. So inside commonSetting.js we are setting devMemoStorageUri.
const devMemoStorageUri = 'https://kursinfostoragestage.blob.core.windows.net/memo-blob-container/'

Copy link
Contributor

@belanglos belanglos left a comment

Choose a reason for hiding this comment

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

Good to go!
Can you add a remark when sending this for testing that pdf-links should be checked as well? Probably good to check them yourself as well before assigning the task.

@amirhossein-haerian
Copy link
Contributor Author

kth.se/kurs-pm/HF1201/om-kurs-pm

Sure, I have checked the PDFs and they are comming from kursinfostoragestage in the ref environemnt. I will also create a comment in Jira as well.

@amirhossein-haerian amirhossein-haerian merged commit 82cc6ce into master Jun 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants