IHTSDO / authoring-ui

SNOMED CT Authoring Frontend Application, part of the SNOMED International Authoring Platform
Other
8 stars 4 forks source link

E2E integration of Authoring platform #7

Open sergiooncode opened 3 years ago

sergiooncode commented 3 years ago

Hello, I posted a question in the authoring-services repo and your answer was really useful. I found a couple more resources in other IHTSDO repos like the Jira backup file and the Nginx authoring config file which were extremely useful. I have the cookie being passed in every request at the top level as far as I can see (see snapshot below with EditThisCookie extension). I have the magic project issue created in Jira with an extension base and a product code. I also have Snowstorm backend running with the full international dump loaded. I actually got to a point where I'm logged in with a user and most of the requests are returning 200 and only a couple requests are returning 404 as you can see below.

Screenshot 2021-02-23 at 22 55 08

When I click on All Projects in the menu bar I even see the markup of the project I have created but for some reason it doesn't render on the page (as you can see below).

Screenshot 2021-02-23 at 23 10 35

I get the feeling that I might be close to having the main blocks of the Authoring platform up and running (I hope I'm not being too naive on this) which would be great since I'm working on a PoC to showcase Snomed tooling in my company as the way to handle medical terminology instead of reinventing the wheel and developing our own application (which unfortunately was done in the past not very succesfully).

Any help you can offer would be highly appreciated. Not sure if I'm a bit out of order here but if you could jump on a quick call to do a bit of troubleshooting that'd be awesome.

Chris-Swires commented 3 years ago

Hey,

Just glancing initially with a couple of gut feelings - the first screenshot it looks as though you're serving the ui at /browser/xx, whereas in the second you're visiting root/xx - this could be the cause of the rendering issue on the projects screen - it potentially simply can't find the styles?

I'd look to serve the application at root to see if that gets you any further, if not it would be useful to see both the console output on that page, and the full network log to see if anything jumps out.

The sso integration looks to be working well and you can see the projects call going through successfully so your base setup looks good!

sergiooncode commented 3 years ago

Thanks for your suggestion @Chris-Swires

The issue was related to the following lines of code below:

scaService.setEndpoint('..' + AppConstants.AUTHORING_SERVICES_ENDPOINT); in app.js, concatenation with '..' didn't seem necessary for some reason

Screenshot 2021-03-24 at 14 37 37