[ 
https://issues.apache.org/jira/browse/NIFIREG-215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719430#comment-16719430
 ] 

ASF GitHub Bot commented on NIFIREG-215:
----------------------------------------

Github user kevdoran commented on a diff in the pull request:

    https://github.com/apache/nifi-registry/pull/149#discussion_r241172387
  
    --- Diff: 
nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/ExtensionResource.java
 ---
    @@ -93,15 +94,25 @@ public ExtensionResource(final RegistryService 
registryService,
                 responseContainer = "List"
         )
         @ApiResponses({ @ApiResponse(code = 401, message = 
HttpStatusMessages.MESSAGE_401) })
    -    public Response getExtensionBundles() {
    +    public Response getExtensionBundles(
    +            @QueryParam("groupId")
    +            @ApiParam("Optional groupId to filter results. The value may 
be an exact match, or a trailing wildcard, " +
    +                    "such as 'com.%' to select all bundles where the 
groupId starts with 'com.'.")
    +                final String groupId,
    +            @QueryParam("artifactId")
    +            @ApiParam("Optional artifactId to filter results. The value 
may be an exact match, or a trailing wildcard, " +
    +                    "such as 'nifi-%' to select all bundles where the 
artifactId starts with 'nifi-'.")
    +                final String artifactId) {
    --- End diff --
    
    These parameters are nice to have, and work as expected for me. One thing I 
noticed is that the documentation says _"... a trailing wildcard ..."_, which 
indicates wildcards can only be used at the end of the value. However in 
testing, I was able to use them anywhere in the value (at the beginning or 
middle of the value) and it worked (with the expected results as well).
    
    So maybe just update the documentation to remove the work "trailing"?


> Extension Bundle Improvements
> -----------------------------
>
>                 Key: NIFIREG-215
>                 URL: https://issues.apache.org/jira/browse/NIFIREG-215
>             Project: NiFi Registry
>          Issue Type: Improvement
>            Reporter: Bryan Bende
>            Assignee: Bryan Bende
>            Priority: Minor
>              Labels: Extension_Registry
>             Fix For: 0.4.0
>
>
> This ticket is to implement some additional improvements to the work done in 
> NIFIREG-211.
>  * Store file size of a bundle in the DB and make it available in retrieved 
> objects
>  * Provide a method to check if a bundle exists (true or false)
>  * Provide an option to allow uploading and overwriting an existing bundle
>  * Consider making snapshots a special version that can always be overridden



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to