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

Version 0.0.1 #8

Closed
7 of 11 tasks
stephenplusplus opened this issue Sep 11, 2015 · 27 comments
Closed
7 of 11 tasks

Version 0.0.1 #8

stephenplusplus opened this issue Sep 11, 2015 · 27 comments

Comments

@stephenplusplus
Copy link
Collaborator

@callmehiphop -- you've been leading the FE charge on this one. Can you plop down a list of the things required to have "something" ready for 2 weeks from now (9/25).

@callmehiphop
Copy link
Collaborator

Added a list of what I think the must haves are for an mvp.

@stephenplusplus
Copy link
Collaborator Author

I think the plugin explorer is probably safe to push for a future release.

@stephenplusplus
Copy link
Collaborator Author

Added "Design" to the list.

@callmehiphop
Copy link
Collaborator

Well, per previous conversations the design was supposed to just follow the current console. I'd think if we just mirror as closely as we can while leveraging material design, we'll be good.. so not sure if that's something we need since it's more or less already drawn out.

@stephenplusplus
Copy link
Collaborator Author

I just mean we have to match that localize that HTML/CSS, which will no doubt take some work!

@callmehiphop
Copy link
Collaborator

My bad! You are correct sir.

@stephenplusplus
Copy link
Collaborator Author

@jgeewax is there a way to get access to the source style and markup files for the console?

@callmehiphop
Copy link
Collaborator

Do we need those?

@stephenplusplus
Copy link
Collaborator Author

I thought it would help us and people who tweak the console to have the originals. You don't think so?

@callmehiphop
Copy link
Collaborator

Well, I was thinking if we leveraged material design everywhere our markup wouldn't be 1:1 with the current console (unless they use it too?)

@stephenplusplus
Copy link
Collaborator Author

Ah, alright. So we need to recreate everything and just use the dev tools to match the little details?

@callmehiphop
Copy link
Collaborator

That's where I was headed, what are your thoughts on that?

@stephenplusplus
Copy link
Collaborator Author

If you're good with that and you don't think source files will help, no objections here.

@jgeewax
Copy link
Owner

jgeewax commented Sep 12, 2015 via email

@stephenplusplus
Copy link
Collaborator Author

and then either a web hosting UI ... and then maybe a GCE UI ...?

Are these plug-ins? I think that sounds pretty cool.

But, I'm starting to think we should host the container and deal with handling auth and persisting user config ourselves. Especially when I think of the "GCS to host static content" idea-- if the cost of getting a super easy to use UI is "download and host this control panel thing and install whatever plug-ins you want yourself," I start to lose interest and think about just using Digital Ocean instead. From the perspective of someone who just wants to get a site on GCP, I probably don't care about the flexibility of tweaking the CP's look and feel too much.

TLDR: 👍 OSS plug-ins to access my GCP stuff, 👎 "host it yourself" - is there any way we can just host this stuff?

@jgeewax
Copy link
Owner

jgeewax commented Sep 13, 2015 via email

@stephenplusplus
Copy link
Collaborator Author

Yeah, that should work. The container will still be OSS so its extensible, and we'll just run a hosted version. Will serve as a nice live demo as well.

@stephenplusplus
Copy link
Collaborator Author

@jgeewax I opened this issue about a problem I'm having using the official client side JS library with Resource Manager (ideally we would use this to get the project's a user controls). I posted it on Saturday, so it's obviously not a big deal that there's no reply yet, but looking at the activity on the repo, there are a lot of issues that seem to go uncared for (the last closed issue was one in July and before that, January). Do you know of a better way to get quicker help for this problem?

@callmehiphop
Copy link
Collaborator

Potentially related to googleapis/google-cloud-node#864 ?

@stephenplusplus
Copy link
Collaborator Author

I don't believe so. With the API explorer, I auth as myself. But with or without auth, trying to execute the API call returns a 404, which leads me to believe something is wrong either with the discovery doc or the way the API library parses it.

@callmehiphop
Copy link
Collaborator

I think it's the google api, I got around this by manually creating the request like so..

gapi.auth.authorize({
  client_id: '288560394597-82lbmhf7077sl5bfp1ll4nnjbhi27etn.apps.googleusercontent.com',
  scope: 'https://www.googleapis.com/auth/cloud-platform'
}).then(function() {
  return gapi.auth.getToken().access_token;
}).then(function(token) {
  return new Promise(function(resolve, reject) {
    var xhr = new XMLHttpRequest();

    xhr.onload = resolve;
    xhr.onerror = reject;

    xhr.open('GET', 'https://cloudresourcemanager.googleapis.com/v1beta1/projects');
    xhr.setRequestHeader('Authorization', 'Bearer ' + token);
    xhr.send();
  });
}).then(function(response) {
  console.log('something went right');
  console.log(response);
}).then(null, function(err) {
  console.log('something went wrong');
  console.log(err);
});

So maybe instead of using that angular service, we'll have to make our own and leave it to the user to plug in the crap they need.

@stephenplusplus
Copy link
Collaborator Author

Well, resource manager is the only one I've had issues with so far (granted, I've only tried that and Storage). Maybe we can just hack it like above to get the list of projects, then keep letting users use gapi? It's definitely the most convenient way to get to the APIs.

@callmehiphop
Copy link
Collaborator

That works for me!

@stephenplusplus
Copy link
Collaborator Author

Nicely done by the way!

@callmehiphop
Copy link
Collaborator

Thanks! I'll turn you into a promise lover sure enough 😉

@stephenplusplus
Copy link
Collaborator Author

@callmehiphop everything you've done is beautiful :)

@callmehiphop
Copy link
Collaborator

hey thanks! I'm sure it'll all change 😆

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