Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Deprecation attribute for links
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Kelly  
View profile  
 More options Apr 8 2012, 5:10 am
From: Mike Kelly <mikekelly...@gmail.com>
Date: Sun, 8 Apr 2012 10:10:34 +0100
Local: Sun, Apr 8 2012 5:10 am
Subject: Deprecation attribute for links
Hi all,

I've been considering introducing a new attribute to links in HAL that
is designed to indicate to clients that a given link (relation) is to
be deprecated. The spec could say something like this:

The deprecates attribute presents a warning to clients that the given
link is due to be removed by the date indicated by the attribute's
value. Clients that traverse a link with a deprecate attribute present
SHOULD take some action to warn their maintainers that this
deprecation is planned (e.g. creating a warning log).

in practice I guess it would look something like this:

{
  "_links": {
    "foo": { "href": "...", "deprecates": "Sun Apr 15 09:08:33 +0000 2012" }
   }

}

<link rel="foo" href="..." deprecates="Sun Apr 15 09:08:33 +0000 2012" />

Thoughts?

Cheers,
Mike

http://twitter.com/mikekelly85
http://github.com/mikekelly


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Derricutt  
View profile  
 More options Apr 8 2012, 5:22 am
From: Mark Derricutt <m...@talios.com>
Date: Sun, 08 Apr 2012 21:22:33 +1200
Local: Sun, Apr 8 2012 5:22 am
Subject: Re: Deprecation attribute for links
+1 - however...

One thing that's always (*#&$(*&#($*#'d me off with @deprecated javadoc
in JavaLand is the lack of any form of "see here for the new stuff"
type documentation.

If we're going to add a deprecates attribute, could we also add
superceeded-by-rel="foo2" or something to that affect ( assuming its
replaced by something? ).

Part of thinks this should be some form formal metadata on the rel
URI's documentation, but then it struck me that this is the
deprecatation of a specific link, not the rel itself.

If we do adopt this - can I suggest/mandate we use ISO 8601 date
formats ( http://www.w3.org/TR/NOTE-datetime ) over some other format?

On Sun Apr  8 21:10:34 2012, Mike Kelly wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Kelly  
View profile  
 More options Apr 8 2012, 6:05 am
From: Mike Kelly <mikekelly...@gmail.com>
Date: Sun, 8 Apr 2012 11:05:55 +0100
Local: Sun, Apr 8 2012 6:05 am
Subject: Re: Deprecation attribute for links

On Sun, Apr 8, 2012 at 10:22 AM, Mark Derricutt <m...@talios.com> wrote:
> +1 - however...

> One thing that's always (*#&$(*&#($*#'d me off with @deprecated javadoc in
> JavaLand is the lack of any form of "see here for the new stuff" type
> documentation.

> If we're going to add a deprecates attribute, could we also add
> superceeded-by-rel="foo2" or something to that affect ( assuming its
> replaced by something? ).

I think I'd prefer something more simple like a deprecation-info
attribtue that's just a string that could be included in a warning
log.

But I'm worried this might be over-complicating things a bit.. if the
relation that's being deprecated is a URI pointing to documentation,
that would seem like a natural place to visit for more info anyway?

> Part of thinks this should be some form formal metadata on the rel URI's
> documentation, but then it struck me that this is the deprecatation of a
> specific link, not the rel itself.

fwiw, I wasn't intending to draw any distinction there

> If we do adopt this - can I suggest/mandate we use ISO 8601 date formats (
> http://www.w3.org/TR/NOTE-datetime ) over some other format?

sure, if everyone else is happy with that?

Cheers,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »