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

Vueify header #4519

Merged
merged 14 commits into from
Jul 13, 2018
Merged

Vueify header #4519

merged 14 commits into from
Jul 13, 2018

Conversation

sharkykh
Copy link
Contributor

@sharkykh sharkykh commented Jul 2, 2018

I still need to add some values to the API, and hopefully remove all the Python conversions.

@sharkykh sharkykh self-assigned this Jul 2, 2018
@OmgImAlexis OmgImAlexis mentioned this pull request Jul 2, 2018
@OmgImAlexis OmgImAlexis self-requested a review July 2, 2018 07:50
@OmgImAlexis OmgImAlexis added this to the 0.2.7 milestone Jul 2, 2018
@sharkykh sharkykh force-pushed the vueify/header branch 3 times, most recently from 23ca22c to 816bc8b Compare July 3, 2018 15:25
@sharkykh sharkykh force-pushed the vueify/header branch 4 times, most recently from a4f5edc to 23fd509 Compare July 7, 2018 14:45
return {
// Python conversions
<% has_emby_api_key = json.dumps(app.EMBY_APIKEY != '') %>
hasEmbyApiKey: ${has_emby_api_key},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@OmgImAlexis
I think this the last blocker to finishing this component (and maybe moving to .vue file).
I can't add the API key to the endpoint (#4404), and we never decided on a solution for the passwords / API keys.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We should allow PATCH for them for now. I'm really not okay with sending the API keys and passwords back to the client if we don't have to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here I need to know if the API key is set, not patch it.
So what I'm saying is, there was a discussion on Slack about how to handle situations where you need to know if it's set (excluding the config pages where we currently have the value in the HTML).
That discussion never reached its conclusion - so we need to figure it out.

I've decided to just remove the emby API key check for now, just so I can move forward with this.
Left a comment in place though.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is the value needed? We may be able to work around this in another way.

@sharkykh sharkykh added Needs test (Vue) Needs tests added for this change (Vue) and removed Needs test (Vue) Needs tests added for this change (Vue) labels Jul 7, 2018
@sharkykh
Copy link
Contributor Author

sharkykh commented Jul 9, 2018

Why is the value needed? We may be able to work around this in another way.

It was needed to ensure the button to update Emby was only visible if you had all the settings set (enabled, host and apikey).
It can work without it, but we're gonna hit that issue again soon with the config pages and we'll need a solution.

@sharkykh sharkykh force-pushed the vueify/header branch 2 times, most recently from a73c360 to e2eaacc Compare July 11, 2018 19:25
@@ -88,19 +87,13 @@ def __init__(self, rh, filename):
'sbDefaultPage': app.DEFAULT_PAGE,
'loggedIn': rh.get_current_user(),
'sbStartTime': rh.startTime,
'numErrors': len(classes.ErrorViewer.errors),
'numWarnings': len(classes.WarningViewer.errors),
'sbPID': str(app.PID),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this be removed too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's still being used everywhere.

OmgImAlexis
OmgImAlexis previously approved these changes Jul 11, 2018
@sharkykh
Copy link
Contributor Author

sharkykh commented Jul 13, 2018

Waiting on #4666

@sharkykh sharkykh changed the title Vueify/header Vueify header Jul 13, 2018
@OmgImAlexis OmgImAlexis merged commit 49f4f98 into develop Jul 13, 2018
@OmgImAlexis OmgImAlexis deleted the vueify/header branch July 13, 2018 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants