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

HR-TIME should be an alias for the latest HR-TIME #571

Closed
domenic opened this issue Dec 2, 2019 · 12 comments
Closed

HR-TIME should be an alias for the latest HR-TIME #571

domenic opened this issue Dec 2, 2019 · 12 comments

Comments

@domenic
Copy link
Collaborator

domenic commented Dec 2, 2019

https://www.specref.org/?q=HR-TIME shows [HR-TIME] as obsolete, but the DOM Standard needs to be able to refer to the latest HR-TIME ED at https://w3c.github.io/hr-time/ in some way. I would assume [HR-TIME] could be that reference, with e.g. [HR-TIME-1] being the obsolete one.

@tobie
Copy link
Owner

tobie commented Dec 2, 2019

Heh. That's yet again another one of the same issue of W3C not being consistent with their versioning scheme. You might be able to fix that using overwrites. @marcoscaceres attempted a solution in #564 (although for CSS specs only). But it came with its own set of issues.

The only real solution moving forward would be to enforce a consistent data model in Specref and force W3C specs into it. I don't think anyone really wants to do the work for this, though.

@domenic
Copy link
Collaborator Author

domenic commented Dec 2, 2019

Do you have advice for what we should do in the DOM Standard in the meantime? I'd guess, switch to using [HR-TIME-2], and update it every time a new edition comes out?

I guess part of the weirdness is that Bikeshed is complaining at us about using "obsolete" refs, but at the same time using Bikeshed's "prefer latest specs" option means that the obsolete URL never shows up, only the ED URL. /cc @tabatkins

@tobie
Copy link
Owner

tobie commented Dec 2, 2019

Do you have advice for what we should do in the DOM Standard in the meantime? I'd guess, switch to using [HR-TIME-2], and update it every time a new edition comes out?

Yeah. This sucks. I agree.

@domenic
Copy link
Collaborator Author

domenic commented Dec 3, 2019

It's frustrating that when I try that, Bikeshed lists the bibliography entry as "High Resolution Time Level 2. URL: https://w3c.github.io/hr-time/", but when I click on that URL, the title is just "High Resolution Time". More of a Bikeshed issue though, I guess...

@domenic
Copy link
Collaborator Author

domenic commented Dec 3, 2019

I guess what's really missing here is an entry in specref that is "Editor's Draft only", which Bikeshed could use when in the Default Ref Status: current mode. That would have a title derived from the ED, instead of the TR counterpart.

The problem is now specref is keying off of TR documents, so when a spec author wants to reference an ED, they have to pick a random corresponding TR document and tell Bikeshed to use that specref entry. Bikeshed then dutifully uses that specref entry's title field ("High Resolution Time level 2"), plus its ED URL field (https://w3c.github.io/hr-time/), which causes a mismatch when the ED title and TR title are different.

@tobie
Copy link
Owner

tobie commented Dec 3, 2019

Those are good points.

@ExE-Boss
Copy link
Collaborator

ExE-Boss commented Dec 4, 2019

In fact, the https://www.w3.org/TR/hr-time/ URL is an alias for https://www.w3.org/TR/hr-time-2/ (and eventually https://www.w3.org/TR/hr-time-3/, once that becomes a W3C Recommendation).

It’s https://www.w3.org/TR/hr-time-1/ that links to the obsolete spec.

@annevk
Copy link
Collaborator

annevk commented Dec 6, 2019

@plehegar is this something you can solve on the W3C side? To ensure hr-time always points to the latest version rather than being obsolete? (This is blocking changes to DOM at the moment.)

@tobie
Copy link
Owner

tobie commented Dec 6, 2019

I think @ExE-Boss's work is getting us really close to not only have a solution for this particular instance, but also be able to solve this very issue easily more broadly.

@plehegar
Copy link
Contributor

plehegar commented Dec 6, 2019

I did catch the fact that our API was broken and didn't do versioning properly:
w3c/w3c-api#96

ie while https://www.w3.org/TR/hr-time/ points to hr-time-2, the API points to the obsolete version of hr-time-1. The fix that that we have to encode the redirects in the DB rather in .htaccess file that the DB doesn't understand.

@tobie , is that the reason why specref gets misled?

@tobie tobie closed this as completed in f1c19e4 Dec 6, 2019
@plehegar
Copy link
Contributor

plehegar commented Dec 6, 2019

I expect this to be fixed no later than January btw.

@domenic
Copy link
Collaborator Author

domenic commented Dec 6, 2019

Thank you very much @ExE-Boss; I didn't really expect this to be solvable, but you saved us!

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

No branches or pull requests

5 participants