You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Romain Moreau (JIRA)" <ji...@codehaus.org> on 2012/01/20 23:53:06 UTC

[jira] (MRM-1592) Add a getArtifactLastVersion method to the SearchService REST service

Romain Moreau created MRM-1592:
----------------------------------

             Summary: Add a getArtifactLastVersion method to the SearchService REST service
                 Key: MRM-1592
                 URL: https://jira.codehaus.org/browse/MRM-1592
             Project: Archiva
          Issue Type: Improvement
          Components: rest services
    Affects Versions: 1.4-M2
            Reporter: Romain Moreau


A useful method that is missing in the SearchService is a method which returns the last version of an artifact and which would have this signature :
{code}
Artifact getArtifactLastVersion(String groupId, String artifactId, String packaging);
{code}
A workaround can be done but it's not clean since the last version information is managed by Archiva in the maven-metadata.xml files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRM-1592) Add a getArtifactLastVersion method to the SearchService REST service

Posted by "Romain Moreau (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRM-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=289151#comment-289151 ] 

Romain Moreau commented on MRM-1592:
------------------------------------

As I said in the description, I don't think it's very clean to do this out of Archiva, IMO it should be part of the service.
I'm not really familiar with Archiva sources and API but if you say that it's easy, I could try to make the patch someday.
                
> Add a getArtifactLastVersion method to the SearchService REST service
> ---------------------------------------------------------------------
>
>                 Key: MRM-1592
>                 URL: https://jira.codehaus.org/browse/MRM-1592
>             Project: Archiva
>          Issue Type: Improvement
>          Components: rest services
>    Affects Versions: 1.4-M2
>            Reporter: Romain Moreau
>
> A useful method that is missing in the SearchService is a method which returns the last version of an artifact and which would have this signature :
> {code}
> Artifact getArtifactLastVersion(String groupId, String artifactId, String packaging);
> {code}
> A workaround can be done but it's not clean since the last version information is managed by Archiva in the maven-metadata.xml files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRM-1592) Add a getArtifactLastVersion method to the SearchService REST service

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRM-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=289141#comment-289141 ] 

Olivier Lamy commented on MRM-1592:
-----------------------------------

I wonder if you see the class VersionComparator in archiva-common module ?
As you have various methods in SearchService you can already easily do that (or provide a patch to implement this ;-) ).
                
> Add a getArtifactLastVersion method to the SearchService REST service
> ---------------------------------------------------------------------
>
>                 Key: MRM-1592
>                 URL: https://jira.codehaus.org/browse/MRM-1592
>             Project: Archiva
>          Issue Type: Improvement
>          Components: rest services
>    Affects Versions: 1.4-M2
>            Reporter: Romain Moreau
>
> A useful method that is missing in the SearchService is a method which returns the last version of an artifact and which would have this signature :
> {code}
> Artifact getArtifactLastVersion(String groupId, String artifactId, String packaging);
> {code}
> A workaround can be done but it's not clean since the last version information is managed by Archiva in the maven-metadata.xml files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRM-1592) Add a getArtifactLastVersion method to the SearchService REST service

Posted by "Romain Moreau (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRM-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288999#comment-288999 ] 

Romain Moreau commented on MRM-1592:
------------------------------------

I think you're right.
An optionnal repositoryId parameter could be useful too to narrow down the search, otherwise getArtifactLastVersion would look in all repositories like the getArtifactVersions method.
                
> Add a getArtifactLastVersion method to the SearchService REST service
> ---------------------------------------------------------------------
>
>                 Key: MRM-1592
>                 URL: https://jira.codehaus.org/browse/MRM-1592
>             Project: Archiva
>          Issue Type: Improvement
>          Components: rest services
>    Affects Versions: 1.4-M2
>            Reporter: Romain Moreau
>
> A useful method that is missing in the SearchService is a method which returns the last version of an artifact and which would have this signature :
> {code}
> Artifact getArtifactLastVersion(String groupId, String artifactId, String packaging);
> {code}
> A workaround can be done but it's not clean since the last version information is managed by Archiva in the maven-metadata.xml files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRM-1592) Add a getArtifactLastVersion method to the SearchService REST service

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRM-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=289152#comment-289152 ] 

Olivier Lamy commented on MRM-1592:
-----------------------------------

yup not so complicated.
Have a look in class DefaultSearchService in module archiva-rest-services.

                
> Add a getArtifactLastVersion method to the SearchService REST service
> ---------------------------------------------------------------------
>
>                 Key: MRM-1592
>                 URL: https://jira.codehaus.org/browse/MRM-1592
>             Project: Archiva
>          Issue Type: Improvement
>          Components: rest services
>    Affects Versions: 1.4-M2
>            Reporter: Romain Moreau
>
> A useful method that is missing in the SearchService is a method which returns the last version of an artifact and which would have this signature :
> {code}
> Artifact getArtifactLastVersion(String groupId, String artifactId, String packaging);
> {code}
> A workaround can be done but it's not clean since the last version information is managed by Archiva in the maven-metadata.xml files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRM-1592) Add a getArtifactLastVersion method to the SearchService REST service

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRM-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288980#comment-288980 ] 

Olivier Lamy commented on MRM-1592:
-----------------------------------

in all current user repositories ?
We could have optional repoId too ?
WDYT ?
                
> Add a getArtifactLastVersion method to the SearchService REST service
> ---------------------------------------------------------------------
>
>                 Key: MRM-1592
>                 URL: https://jira.codehaus.org/browse/MRM-1592
>             Project: Archiva
>          Issue Type: Improvement
>          Components: rest services
>    Affects Versions: 1.4-M2
>            Reporter: Romain Moreau
>
> A useful method that is missing in the SearchService is a method which returns the last version of an artifact and which would have this signature :
> {code}
> Artifact getArtifactLastVersion(String groupId, String artifactId, String packaging);
> {code}
> A workaround can be done but it's not clean since the last version information is managed by Archiva in the maven-metadata.xml files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira