Skip to content

API joint for pulsar backend: delete, start, stop function.#41

Merged
RobertIndie merged 41 commits intoFunctionStream:mainfrom
Akhil-Yuan:main
Jun 24, 2021
Merged

API joint for pulsar backend: delete, start, stop function.#41
RobertIndie merged 41 commits intoFunctionStream:mainfrom
Akhil-Yuan:main

Conversation

@Akhil-Yuan
Copy link
Copy Markdown
Contributor

@Akhil-Yuan Akhil-Yuan commented Jun 19, 2021

Master Issue: #8

better1719 and others added 30 commits June 2, 2021 13:12
views\function\components\FunctionTable.vue
mock\services\func.js
views\function\components\FunctionTable.vue
mock\services\func.js
Co-authored-by: Zike Yang <zkyang@streamnative.io>
Co-authored-by: Zike Yang <zkyang@streamnative.io>
� Conflicts:
�	front-end/src/views/function/components/FunctionTable.vue
Co-authored-by: Zike Yang <zkyang@streamnative.io>
Co-authored-by: Zike Yang <zkyang@streamnative.io>
Co-authored-by: Zike Yang <zkyang@streamnative.io>
Co-authored-by: Zike Yang <zkyang@streamnative.io>
@RobertIndie RobertIndie added this to the 0.1.0 milestone Jun 20, 2021
Copy link
Copy Markdown
Contributor

@RobertIndie RobertIndie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a error when deleting a function:

Access to XMLHttpRequest at 'http://localhost:3000/admin/v3/functions/public/default/api-func/delete' from origin 'http://localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

It may be some problems with CORS in the pulsar proxy. I will take a look later.

Comment thread front-end/src/api/func.js
stats: ({ funcName }) => `/admin/v3/functions/public/default/${funcName}/stats`,
status: ({ funcName }) => `/admin/v3/functions/public/default/${funcName}/status`,
trigger: ({ funcName }) => `/admin/v3/functions/public/default/${funcName}/trigger`,
deleteFunc: ({ funcName }) => `/admin/v3/functions/public/default/${funcName}/delete`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL is incorrect. It does not need to contain delete in the delete URL. Please check with the postman.

@Akhil-Yuan Akhil-Yuan requested a review from RobertIndie June 21, 2021 12:19
Copy link
Copy Markdown
Contributor

@RobertIndie RobertIndie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RobertIndie RobertIndie merged commit 1a98a76 into FunctionStream:main Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants