FHIR Chat · IG History page links cannot be resolved · IG creation

Stream: IG creation

Topic: IG History page links cannot be resolved


view this post on Zulip David deRoode (Jul 16 2020 at 22:32):

IG began getting these four build errors regarding the History pages (xml, json, ttyl, Narrative Content), any thoughts on what could be causing these?

ImplementationGuide-hl7.fhir.us.dentalreferral.history.html#/html/body/div/div/div/div/div/ul/li/a at Line 123, column 6|The link 'ImplementationGuide-hl7.fhir.us.dentalreferral.html' for "Narrative Content" cannot be resolved
ImplementationGuide-hl7.fhir.us.dentalreferral.history.html#/html/body/div/div/div/div/div/ul/li/a at Line 129, column 8|The link 'ImplementationGuide-hl7.fhir.us.dentalreferral.xml.html' for "XML" cannot be resolved
ImplementationGuide-hl7.fhir.us.dentalreferral.history.html#/html/body/div/div/div/div/div/ul/li/a at Line 136, column 8|The link 'ImplementationGuide-hl7.fhir.us.dentalreferral.json.html' for "JSON" cannot be resolved
ImplementationGuide-hl7.fhir.us.dentalreferral.history.html#/html/body/div/div/div/div/div/ul/li/a at Line 143, column 8|The link 'ImplementationGuide-hl7.fhir.us.dentalreferral.ttl.html' for "TTL" cannot be resolved

view this post on Zulip Eric Haas (Jul 17 2020 at 00:43):

They just popped for me as well...

view this post on Zulip Eric Haas (Jul 17 2020 at 00:57):

looks like a template error.. I'll check it out

view this post on Zulip Eric Haas (Jul 17 2020 at 02:25):

This PR hides the IG resource's HX file but does not fix the extension which are still causing build errors. The changes to the config.json file to basically consolidate the extension hx into the profile hx template may only be implemented by the ig-publisher tooling or maybe script? I don't know... can you check it out @Lloyd and or @Grahame

view this post on Zulip Eric Haas (Jul 17 2020 at 02:28):

Example of build errors for DEQM: https://build.fhir.org/ig/HL7/davinci-deqm/qa.html

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 06:01):

When I build this locally with the base template (including latest changes) I don't get those errors

view this post on Zulip David Hay (Jul 17 2020 at 06:28):

I'm getting a lot of these errors as well - there seem to be history fragments generated for all extensions - and they don't have any entries so they all get these errors...

using the latest publisher...

Any way to turn the history off? Or do there need to be provenance entries for each extension...

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 06:34):

can you point to the errors you're getting, @David Hay ?

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 06:34):

you do not need to do anything - if something fails it's the template that is not OK

view this post on Zulip David Hay (Jul 17 2020 at 07:01):

here you go: http://build.fhir.org/ig/HL7NZ/nhi/branches/master/index.html

view this post on Zulip David Hay (Jul 17 2020 at 07:03):

Thanks for looking at this!

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 08:04):

in a few hours I'll check this. thanks

view this post on Zulip John Moehrke (Jul 17 2020 at 11:24):

@Jose Costa Teixeira I get those too with my IHE template using IG.

view this post on Zulip John Moehrke (Jul 17 2020 at 11:25):

I figure I must have accidentally turned on something for history but not fully turned it on. I don't know what I did wrong, don't know what I should have done. https://github.com/IHE/FormatCode

view this post on Zulip David Pyke (Jul 17 2020 at 12:23):

I"m getting it to, using a derivative of fhir.base.template.

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 13:52):

All IGs will suffer from the same. I think i found the issue

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 13:53):

It's in the base template so all templates will suffer from the same

view this post on Zulip John Moehrke (Jul 17 2020 at 14:07):

suffering in a group is far less painful than suffering alone. I really appreciate your expertise, heal us doctor.

view this post on Zulip John Moehrke (Jul 17 2020 at 14:09):

what Medication will you prescribe (MedicationRequest)? -- a little humor for a friday --

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 14:21):

i'd tried to describe that but Dosage does not have enough fields to describe that.

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 14:23):

John Moehrke said:

suffering in a group is far less painful than suffering alone

I know, that is why I let the group suffer :smiling_devil:

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 14:25):

I'm doing the "therapeutic proof", not sure the term in English. making a fix to see if i got the diagnostic right

view this post on Zulip David Pyke (Jul 17 2020 at 14:40):

I'll be ready for the Procedure to address the Condition

view this post on Zulip John Moehrke (Jul 17 2020 at 14:47):

Jose Costa Teixeira said:

I'm doing the "therapeutic proof", not sure the term in English. making a fix to see if i got the diagnostic right

is it a double -blind study?

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 14:49):

not really

view this post on Zulip John Moehrke (Jul 17 2020 at 14:50):

well include @David Pyke and I and you will have two blind (ignorant) guys helping out

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 14:50):

if you are looking for the differential:
I think the nav-tabs is causing an issue because xxx.history.html is the name of the fragment AND the name of the output file

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 14:51):

the nav-tabs was introduced by @Eric Haas I think, and he started the debugging, so I am proceeding and seeing what is happening based on his issue report

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 14:54):

i'm changing the config json to use xxx.base-history and not xxx.history

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:08):

I'm definitely not sure this s the issue, but it allows me to look for the issue

view this post on Zulip Eric Haas (Jul 17 2020 at 15:10):

@Jose did you look at my PR: https://github.com/HL7/ig-template-base/pull/110

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:10):

yes

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:11):

i am now tracing back my steps to see which step is the one that fixed the issue (if I fixed it)

view this post on Zulip Eric Haas (Jul 17 2020 at 15:16):

history frags are being automatically generated for all the artificacts by default and the only issue remaining with the tabs is that extensions are creating using the wrong template and I don't know why.

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:19):

yes, but the fragment has the same name as the final file - i don't know if that breaks it, but it sure doesn't help debugging. in a few minutes I shold be able to diff the things I have (i got it to 0 errors in NZ profile)

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:19):

also there was a missing line in the config.json

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:20):

  "template-format": "",

inside StructureDefinition (the profile, not the extension). I think this gave me a few issues with the xxx-.json.html and xxx.xml.html...

view this post on Zulip David Pyke (Jul 17 2020 at 15:26):

I just did a build and the implementation guide history error went away but the extension structure def history error remains

view this post on Zulip John Moehrke (Jul 17 2020 at 15:27):

certainly see the history on conformance resource generated pages where there are Provenance. But isn't there still a need for history of changes at the IG level? If not, then I am fine with that going away.

view this post on Zulip John Moehrke (Jul 17 2020 at 15:29):

or has history of changes at the IG level moved to a Provenance based method?

view this post on Zulip Eric Haas (Jul 17 2020 at 15:43):

I think the templates are correct and the generated fragments all exist. I'm not sure about the magic behind matching what is in the config.json to the proper template and that is where I think the issue is. @Jose Costa Teixeira @Grahame Grieve

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:45):

i have a config.json that fixed my issue, but it also includes some other changes, i will try to pinpoint which one helps.

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:46):

@Eric Haas I think your issue in the PR is because of the missing line in the config.json

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:48):

without that line, it still tries to create another template-format.html thing, but it shouldn't because it already creates the xml and the json explicitly

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:48):

this is the change:
image.png

view this post on Zulip Eric Haas (Jul 17 2020 at 15:49):

thats odd because that is a new line and does not involve the templates for extensions

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:51):

that is what I am trying to see if my changes help fix this or at least understand.

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:52):

want to check a new config.json? It includes some other stuff but then we can trim down

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:52):

or @John Moehrke @David Pyke does the offer for help debugging still stand? i'd appreciate a confirmation that this may be a step forward in fixing this

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:54):

config.json

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:54):

this is what I have now

view this post on Zulip Eric Haas (Jul 17 2020 at 15:58):

@Jose chrome blocked it I'll just add that line and try it now.

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:59):

it's several lines, but yes please start with that

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 15:59):

in chrome you can sill get the file:

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 16:00):

instead of clicking on the file on the bottom left notification, on the right part of that notification there is a "show All" (or CTRL +J)

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 16:00):

there you have "keep unsafe file"

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 16:04):

but I am just realizing that this may not be it - i think this config did not have the lines that create the other history pages (Which is where the issue was )

view this post on Zulip John Moehrke (Jul 17 2020 at 16:14):

I will note that the problem has gone away... so something magical has happened.

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 16:16):

which is actually more scary

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 16:16):

because I don't see any changes in the code since 12 hours ago

view this post on Zulip John Moehrke (Jul 17 2020 at 16:21):

yup, I can't confirm that it was failing 12 hours ago

view this post on Zulip Eric Haas (Jul 17 2020 at 16:25):

adding in the line

"template-format": "", to the config.json made all the hx page tab links for profiles break as well so will remove from both SD and SD:extension and see..

view this post on Zulip Eric Haas (Jul 17 2020 at 16:31):

@Jose Costa Teixeira removing that line from both SD and SD:Extension in config.json fixed the tab link error issue.. BUT I did not check for any other side effects and I gotta go...

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 16:32):

thanks, i'll continue

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 17:17):

I think I fixed it

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 17:20):

Anyone want to test the fix? Should have a local template and history, ideally for different types of assets

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 17:41):

@Lloyd McKenzie PR created. I think it's fixed but please see if you spot anything

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 17:41):

(wanted to submit this before dinner time to avoid memory losses)

view this post on Zulip David Pyke (Jul 17 2020 at 19:03):

Whatever was just pushed to the base template fixed the issue for me

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 19:04):

@David Pyke is it on the ci build?

view this post on Zulip David Pyke (Jul 17 2020 at 19:05):

Yep.

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 19:05):

link?

view this post on Zulip David Pyke (Jul 17 2020 at 19:06):

file:///home/loftwyr/FHIR/CEQSubscription/output/qa.html

view this post on Zulip David Pyke (Jul 17 2020 at 19:06):

Hold on, let me push it to the autobuilder

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 19:06):

that link does not resolve from here :)

view this post on Zulip David Pyke (Jul 17 2020 at 19:06):

Yeah, my brain hurts.

view this post on Zulip David Pyke (Jul 17 2020 at 19:08):

Pushed, give it a minute. https://build.fhir.org/ig/DavidPyke/CEQSubscription/qa.html

view this post on Zulip Jose Costa Teixeira (Jul 17 2020 at 19:19):

ok and before you had history errors, right?

view this post on Zulip David Pyke (Jul 17 2020 at 19:30):

Yep. For an extension and for the IG resource itself

view this post on Zulip David Hay (Jul 17 2020 at 20:01):

All fixed for me too! Thanks @Jose Costa Teixeira ...

view this post on Zulip Rob Hausam (Jul 17 2020 at 23:29):

Also fixed for me. Thanks!


Last updated: Apr 12 2022 at 19:14 UTC