[jboss-jira] [JBoss JIRA] (WFLY-3622) CLI should WARN about usage deprecated api

Tomaz Cerar (JIRA) issues at jboss.org
Mon Jul 14 11:42:32 EDT 2014


     [ https://issues.jboss.org/browse/WFLY-3622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Cerar updated WFLY-3622:
------------------------------

    Description: 
We added support for deprecating resources/attributes/operations/parameters some time ago.
I would be a good thing that we would warn users if they are using deprecated API.
Every resource/attribute/operation/param that is deprecated has extra element "deprecated" in metadata
With sub elements 
- "since", which tells in what version it was deprecated
- "reason", text description why it is deprecated.

Reason in most cases also tells what is new replacement.

This should be only displayed in case of interactive shell usage.
Unless there is also some special CLI log file, it could be part of that even for non-interactive usage

  was:
We added support for deprecating resouces/attributes/operations/parameters some time ago.
I would be a good thing that we would warn users if they are using deprecated API.
Every resource/attribute/operation/param that is deprecated has extra element "deprecated" in metadata
With sub elements 
- "since", which tells in what version it was deprecated
- "reason", text description why it is deprecated.

Reason in most cases also tells what is new replacement.




> CLI should WARN about usage deprecated api
> ------------------------------------------
>
>                 Key: WFLY-3622
>                 URL: https://issues.jboss.org/browse/WFLY-3622
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: CLI
>            Reporter: Tomaz Cerar
>            Assignee: Alexey Loubyansky
>             Fix For: 9.0.0.CR1
>
>
> We added support for deprecating resources/attributes/operations/parameters some time ago.
> I would be a good thing that we would warn users if they are using deprecated API.
> Every resource/attribute/operation/param that is deprecated has extra element "deprecated" in metadata
> With sub elements 
> - "since", which tells in what version it was deprecated
> - "reason", text description why it is deprecated.
> Reason in most cases also tells what is new replacement.
> This should be only displayed in case of interactive shell usage.
> Unless there is also some special CLI log file, it could be part of that even for non-interactive usage



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list