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

[FIX] - base_rest: fix missing params #368

Closed
wants to merge 1 commit into from

Conversation

sbejaoui
Copy link
Contributor

No description provided.

@sbejaoui
Copy link
Contributor Author

cc/ @lmignon

@@ -151,7 +151,7 @@ def dispatch(self, method_name, *args, params=None):
:return:
"""
method = getattr(self, method_name, object())
params = params or {}
params = params or request.get_json_data() or {}
Copy link
Contributor

Choose a reason for hiding this comment

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

@sbejaoui At this level, we should not use the request object. The parameters should be properly passed to the dispatch by callers. I've the feeling that the problem is upstream into the call stack.

@sbejaoui sbejaoui force-pushed the 16.0-base_rest-sbj branch from a4c523f to 5c08d8c Compare August 22, 2023 19:13
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 24, 2023
@github-actions github-actions bot closed this Jan 28, 2024
@lmignon lmignon reopened this Feb 22, 2024
@lmignon lmignon added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Feb 22, 2024
@lmignon
Copy link
Contributor

lmignon commented Feb 29, 2024

closing since the fix is a workaround for a bug into shopfloor_base

@lmignon lmignon closed this Feb 29, 2024
@lmignon lmignon deleted the 16.0-base_rest-sbj branch February 29, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no stale Use this label to prevent the automated stale action from closing this PR/Issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants