Skip to content

Commit

Permalink
Remove unnecessary annotations due to recent restriction of adding ne… (
Browse files Browse the repository at this point in the history
  • Loading branch information
mchen07 authored Sep 24, 2022
1 parent 26f2a02 commit aab9f24
Show file tree
Hide file tree
Showing 191 changed files with 867 additions and 2,797 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ and what APIs have changed, if applicable.

## [Unreleased]

## [29.39.2] - 2022-09-22
Remove unnessary extra IDL annotations due to recent restriction of adding new method into bridged service and emit resourceC
lass for javaparser to use to update rest.li resource.

## [29.39.1] - 2022-09-20
Expose an easy way to override validation options for ActionArgumentBuilder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ record ActionSchema includes CustomAnnotationSchema, ServiceErrorsSchema, Succes
*/
javaMethodName: optional string

/**
* Java method type for this finder method
*/
javaMethodType: optional JavaMethodType = "SYNC"

/**
* True if the java implementation of this method returns the result wrapper (aka ActionResult). False, if
* it returns List.
*/
javaReturnsResultWrapper: optional boolean = false

/**
* Placeholder indicating if this action is read-only or not. This is not enforced by the framework
* and is just a marker.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ record FinderSchema includes CustomAnnotationSchema, ServiceErrorsSchema, Succes
*/
javaMethodName: optional string

/**
* Java method type for this finder method
*/
javaMethodType: optional JavaMethodType = "SYNC"

/**
* True if the java implementation of this method returns the result wrapper (aka CollectionResult). False, if
* it returns List.
*/
javaReturnsResultWrapper: optional boolean = false

/**
* Documentation for this finder
*/
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ record ResourceSchema includes CustomAnnotationSchema {
*/
doc: optional string

/**
* Full qualified Rest.li resource class name
*/
resourceClass: optional string

/**
* details of collection, if this resource is a collection
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ record RestMethodSchema includes CustomAnnotationSchema, ServiceErrorsSchema, Su
*/
javaMethodName: optional string

/**
* Java method type for this rest method
*/
javaMethodType: optional JavaMethodType = "SYNC"

/**
* True if the java implementation of this method returns the result wrapper (aka CollectionResult for GET_ALL, or
* GetResult for GET or BatchResult for Batch_GET). False, if it returns the result as is. This is only applicable
* for read methods (GET/BATCH_GET/GET_ALL).
*/
javaReturnsResultWrapper: optional boolean

/**
* Documentation for this rest method
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"path" : "/albumEntry",
"schema" : "com.linkedin.restli.example.AlbumEntry",
"doc" : "Many-many association between photos and albums.\n\n <pre>\n new AlbumEntryBuilders().findBySearch()\n .albumIdParam(5)\n .photoIdParam(100)\n .build();\n </pre>\n\ngenerated from: com.linkedin.restli.example.impl.AlbumEntryResource",
"resourceClass" : "com.linkedin.restli.example.impl.AlbumEntryResource",
"association" : {
"serviceErrors" : [ {
"status" : 422,
Expand Down Expand Up @@ -35,6 +36,7 @@
} ],
"success" : [ 200 ],
"method" : "get",
"javaMethodName" : "get",
"doc" : "Retrieve the photo's album entry"
}, {
"serviceErrors" : [ {
Expand All @@ -51,6 +53,7 @@
} ],
"success" : [ 204 ],
"method" : "update",
"javaMethodName" : "update",
"doc" : "Add the specified photo to the specified album.\n If a matching pair of IDs already exists, this changes the add date."
}, {
"serviceErrors" : [ {
Expand All @@ -67,9 +70,11 @@
} ],
"success" : [ 204, 200 ],
"method" : "delete",
"javaMethodName" : "delete",
"doc" : "Remove the specified photo from the specified album"
}, {
"method" : "batch_get"
"method" : "batch_get",
"javaMethodName" : "batchGet"
} ],
"finders" : [ {
"serviceErrors" : [ {
Expand All @@ -87,6 +92,7 @@
} ],
"success" : [ 200 ],
"name" : "search",
"javaMethodName" : "search",
"doc" : "Find all entries matching the given album and photo IDs. <code>null</code> is treated\n as a wildcard.",
"parameters" : [ {
"name" : "albumId",
Expand Down Expand Up @@ -114,6 +120,7 @@
"parameters" : [ "albumId", "photoId" ]
} ],
"name" : "purge",
"javaMethodName" : "purge",
"doc" : "Delete all entries in the db with matching album/photo IDs. If either albumId or photoId\n params are not supplied they are treated as a wildcard.",
"parameters" : [ {
"name" : "albumId",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,29 @@
"path" : "/albums",
"schema" : "com.linkedin.restli.example.Album",
"doc" : "generated from: com.linkedin.restli.example.impl.AlbumResource",
"resourceClass" : "com.linkedin.restli.example.impl.AlbumResource",
"collection" : {
"identifier" : {
"name" : "albumsId",
"type" : "long"
},
"supports" : [ "create", "delete", "get", "update" ],
"methods" : [ {
"method" : "create"
"method" : "create",
"javaMethodName" : "create"
}, {
"method" : "get"
"method" : "get",
"javaMethodName" : "get"
}, {
"method" : "update"
"method" : "update",
"javaMethodName" : "update"
}, {
"method" : "delete"
"method" : "delete",
"javaMethodName" : "delete"
} ],
"actions" : [ {
"name" : "purge",
"javaMethodName" : "purge",
"returns" : "int"
} ],
"entity" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,35 @@
"path" : "/photos",
"schema" : "com.linkedin.restli.example.Photo",
"doc" : "generated from: com.linkedin.restli.example.impl.PhotoResource",
"resourceClass" : "com.linkedin.restli.example.impl.PhotoResource",
"collection" : {
"identifier" : {
"name" : "photosId",
"type" : "long"
},
"supports" : [ "batch_get", "create", "delete", "get", "partial_update", "update" ],
"methods" : [ {
"method" : "create"
"method" : "create",
"javaMethodName" : "create"
}, {
"method" : "get"
"method" : "get",
"javaMethodName" : "get"
}, {
"method" : "update"
"method" : "update",
"javaMethodName" : "update"
}, {
"method" : "partial_update"
"method" : "partial_update",
"javaMethodName" : "update"
}, {
"method" : "delete"
"method" : "delete",
"javaMethodName" : "delete"
}, {
"method" : "batch_get"
"method" : "batch_get",
"javaMethodName" : "batchGet"
} ],
"finders" : [ {
"name" : "titleAndOrFormat",
"javaMethodName" : "find",
"parameters" : [ {
"name" : "title",
"type" : "string",
Expand All @@ -38,6 +46,7 @@
} ],
"batchFinders" : [ {
"name" : "searchPhotos",
"javaMethodName" : "searchPhotos",
"parameters" : [ {
"name" : "criteria",
"type" : "{ \"type\" : \"array\", \"items\" : \"com.linkedin.restli.example.PhotoCriteria\" }"
Expand All @@ -51,6 +60,7 @@
} ],
"actions" : [ {
"name" : "purge",
"javaMethodName" : "purge",
"returns" : "int"
} ],
"entity" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"path" : "/albumEntry",
"schema" : "com.linkedin.restli.example.AlbumEntry",
"doc" : "Many-many association between photos and albums.\n\n <pre>\n new AlbumEntryBuilders().findBySearch()\n .albumIdParam(5)\n .photoIdParam(100)\n .build();\n </pre>\n\ngenerated from: com.linkedin.restli.example.impl.AlbumEntryResource",
"resourceClass" : "com.linkedin.restli.example.impl.AlbumEntryResource",
"association" : {
"serviceErrors" : [ {
"status" : 422,
Expand Down Expand Up @@ -62,6 +63,7 @@
} ],
"success" : [ 200 ],
"method" : "get",
"javaMethodName" : "get",
"doc" : "Retrieve the photo's album entry"
}, {
"serviceErrors" : [ {
Expand All @@ -78,6 +80,7 @@
} ],
"success" : [ 204 ],
"method" : "update",
"javaMethodName" : "update",
"doc" : "Add the specified photo to the specified album.\n If a matching pair of IDs already exists, this changes the add date."
}, {
"serviceErrors" : [ {
Expand All @@ -94,9 +97,11 @@
} ],
"success" : [ 204, 200 ],
"method" : "delete",
"javaMethodName" : "delete",
"doc" : "Remove the specified photo from the specified album"
}, {
"method" : "batch_get"
"method" : "batch_get",
"javaMethodName" : "batchGet"
} ],
"finders" : [ {
"serviceErrors" : [ {
Expand All @@ -114,6 +119,7 @@
} ],
"success" : [ 200 ],
"name" : "search",
"javaMethodName" : "search",
"doc" : "Find all entries matching the given album and photo IDs. <code>null</code> is treated\n as a wildcard.",
"parameters" : [ {
"name" : "albumId",
Expand Down Expand Up @@ -141,6 +147,7 @@
"parameters" : [ "albumId", "photoId" ]
} ],
"name" : "purge",
"javaMethodName" : "purge",
"doc" : "Delete all entries in the db with matching album/photo IDs. If either albumId or photoId\n params are not supplied they are treated as a wildcard.",
"parameters" : [ {
"name" : "albumId",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,29 @@
"path" : "/albums",
"schema" : "com.linkedin.restli.example.Album",
"doc" : "generated from: com.linkedin.restli.example.impl.AlbumResource",
"resourceClass" : "com.linkedin.restli.example.impl.AlbumResource",
"collection" : {
"identifier" : {
"name" : "albumsId",
"type" : "long"
},
"supports" : [ "create", "delete", "get", "update" ],
"methods" : [ {
"method" : "create"
"method" : "create",
"javaMethodName" : "create"
}, {
"method" : "get"
"method" : "get",
"javaMethodName" : "get"
}, {
"method" : "update"
"method" : "update",
"javaMethodName" : "update"
}, {
"method" : "delete"
"method" : "delete",
"javaMethodName" : "delete"
} ],
"actions" : [ {
"name" : "purge",
"javaMethodName" : "purge",
"returns" : "int"
} ],
"entity" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,27 +77,35 @@
"path" : "/photos",
"schema" : "com.linkedin.restli.example.Photo",
"doc" : "generated from: com.linkedin.restli.example.impl.PhotoResource",
"resourceClass" : "com.linkedin.restli.example.impl.PhotoResource",
"collection" : {
"identifier" : {
"name" : "photosId",
"type" : "long"
},
"supports" : [ "batch_get", "create", "delete", "get", "partial_update", "update" ],
"methods" : [ {
"method" : "create"
"method" : "create",
"javaMethodName" : "create"
}, {
"method" : "get"
"method" : "get",
"javaMethodName" : "get"
}, {
"method" : "update"
"method" : "update",
"javaMethodName" : "update"
}, {
"method" : "partial_update"
"method" : "partial_update",
"javaMethodName" : "update"
}, {
"method" : "delete"
"method" : "delete",
"javaMethodName" : "delete"
}, {
"method" : "batch_get"
"method" : "batch_get",
"javaMethodName" : "batchGet"
} ],
"finders" : [ {
"name" : "titleAndOrFormat",
"javaMethodName" : "find",
"parameters" : [ {
"name" : "title",
"type" : "string",
Expand All @@ -111,6 +119,7 @@
} ],
"batchFinders" : [ {
"name" : "searchPhotos",
"javaMethodName" : "searchPhotos",
"parameters" : [ {
"name" : "criteria",
"type" : "{ \"type\" : \"array\", \"items\" : \"com.linkedin.restli.example.PhotoCriteria\" }"
Expand All @@ -124,6 +133,7 @@
} ],
"actions" : [ {
"name" : "purge",
"javaMethodName" : "purge",
"returns" : "int"
} ],
"entity" : {
Expand Down
Loading

0 comments on commit aab9f24

Please sign in to comment.