Skip to content

Global Config not returning parameters #596

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

Closed
mjonatd opened this issue Nov 22, 2016 · 2 comments
Closed

Global Config not returning parameters #596

mjonatd opened this issue Nov 22, 2016 · 2 comments

Comments

@mjonatd
Copy link

mjonatd commented Nov 22, 2016

When using the dashboard, under "Core | Config" , I am able to save global config variables. However, when I go back to the dashboard, the config variables are not displaying due to a 403 unauthorized.

I can, however, go use postman: http://localhost:1337/parse/config and pass the masterkey/application id in the header and it displays all the configs I have added.

I have "fixed" it by changing the ConfigStore.js

switch (action.type) {
case ActionTypes.FETCH:
return Parse._request(
'GET',
'config',
{ params: { [action.param]: Parse._encode(action.value) } },
{ useMasterKey: true }
).then(( attributes ) => {
console.log(attributes);
return Map({ lastFetch: new Date(), params: Map(attributes.params) });
});

Is this the correct way of fixing it? If not, what suggestions would you have?

Thanks!

@dvanwinkle
Copy link
Contributor

Please check #575. It may include the fix that you are looking for. Very similar, but, I'm not sure if #575 needs the params that you pass in or not.

@natanrolnik
Copy link
Contributor

@mjonatd @dvanwinkle this issue was fixed in the latest release.

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

No branches or pull requests

3 participants