Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Include request context in app-hooks #6894

Merged
merged 10 commits into from
Nov 7, 2023

Conversation

pranavxc
Copy link
Member

@pranavxc pranavxc commented Nov 6, 2023

Change Summary

Provide summary of changes with issue number if any.

Change type

  • feat: (new feature for the user, not a new feature for build script)
  • fix: (bug fix for the user, not a fix to a build script)
  • docs: (changes to the documentation)
  • style: (formatting, missing semi colons, etc; no production code change)
  • refactor: (refactoring production code, eg. renaming a variable)
  • test: (adding missing tests, refactoring tests; no production code change)
  • chore: (updating grunt tasks etc; no production code change)

Test/ Verification

Provide summary of changes.

Additional information / screenshots (optional)

Anything for maintainers to be made aware of

Copy link
Contributor

github-actions bot commented Nov 6, 2023

Uffizzi Preview deployment-40161 was deleted.

@o1lab o1lab force-pushed the nc-fix/test-connection branch 6 times, most recently from c0cce4d to a363584 Compare November 6, 2023 21:17
Copy link
Member

@wingkwong wingkwong left a comment

Choose a reason for hiding this comment

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

  1. please add the reason why we need to add request context in PR summary.

@@ -19,10 +26,13 @@ export class FormColumnsController {
async columnUpdate(
@Param('formViewColumnId') formViewColumnId: string,
@Body() formViewColumnbody: FormColumnUpdateReqType,

@Request() req: any,
Copy link
Member

Choose a reason for hiding this comment

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

can use RequestType instead of any? (apply to all)

Copy link
Member Author

Choose a reason for hiding this comment

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

I will update this part as well in a followup pr... and inside hook I will use a custom type since in some case only certain fields we are passing ( user, headers, etc... )

@pranavxc
Copy link
Member Author

pranavxc commented Nov 7, 2023

  1. please add the reason why we need to add request context in PR summary.

At the moment we are not using it in OSS but later it will be helpful to extract data for Audit and listeners.

@pranavxc pranavxc merged commit fa5d4f9 into develop Nov 7, 2023
22 checks passed
@pranavxc pranavxc deleted the nc-fix/test-connection branch November 7, 2023 05:53
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.

None yet

2 participants