You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "zhangmo8 (via GitHub)" <gi...@apache.org> on 2023/12/27 11:27:18 UTC
[PR] [Feature]: Metadata mock integrated [incubator-paimon-webui]
zhangmo8 opened a new pull request, #132:
URL: https://github.com/apache/incubator-paimon-webui/pull/132
<!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
### Purpose
Mock Server Docs & Mock Web Server
Metadata mock integrated
<img width="894" alt="image" src="https://github.com/apache/incubator-paimon-webui/assets/43628500/2ea76d32-ba40-49aa-9ab7-4871799c9275">
<!-- What is the purpose of the change, or the associated issue -->
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature]: Metadata mock integrated [incubator-paimon-webui]
Posted by "zhangmo8 (via GitHub)" <gi...@apache.org>.
zhangmo8 commented on code in PR #132:
URL: https://github.com/apache/incubator-paimon-webui/pull/132#discussion_r1437052966
##########
paimon-web-ui-new/mock/modules/metadata.js:
##########
@@ -15,10 +15,10 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License. */
-module.exports = {
- '/catalog/getAllCatalogs': {
+module.exports = (mockUtil) => ({
+ '/catalog/getAllCatalogs': mockUtil({
code: 200,
- message: 'success',
+ msg: 'Successfully',
Review Comment:
This is the same message as the backend result.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature]: Metadata mock integrated [incubator-paimon-webui]
Posted by "SteNicholas (via GitHub)" <gi...@apache.org>.
SteNicholas commented on code in PR #132:
URL: https://github.com/apache/incubator-paimon-webui/pull/132#discussion_r1437040806
##########
paimon-web-ui-new/mock/modules/metadata.js:
##########
@@ -31,5 +31,116 @@ module.exports = {
hiveConfDir: undefined
}
]
- }
-}
+ }),
+ 'get /database/list': mockUtil({
+ code: 200,
+ msg: 'Successfully',
Review Comment:
Ditto.
##########
paimon-web-ui-new/mock/modules/metadata.js:
##########
@@ -15,10 +15,10 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License. */
-module.exports = {
- '/catalog/getAllCatalogs': {
+module.exports = (mockUtil) => ({
+ '/catalog/getAllCatalogs': mockUtil({
code: 200,
- message: 'success',
+ msg: 'Successfully',
Review Comment:
```suggestion
msg: 'Success',
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Metadata mock integration [incubator-paimon-webui]
Posted by "SteNicholas (via GitHub)" <gi...@apache.org>.
SteNicholas merged PR #132:
URL: https://github.com/apache/incubator-paimon-webui/pull/132
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org