-
Notifications
You must be signed in to change notification settings - Fork 9
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
Cannot save manually created activities #94
Comments
@jlmcdonald the email address in your "Account" entry is a .edu one. Is this the same email address you use to login? The backend retrieves your email address based on your authentication and matches it against the account list, so they have to be the same. Feel free to contact me less publicly to sort this out :) |
To check you can call this in the console and see what email you are authenticated with:
|
I cant save manual activities either, but with a different error. Could it be because the "Activity link" must be a valid public post by me? I havent tried making the public post yet because in this case it doesnt make sense. |
@Scarygami I use the .edu address in the directory but do all posting with a gmail.com address (in my gmail account, the .edu address is usable to log in, however). You're correct that this is probably the issue that's causing the failure, but as I said the app has retrieved all of my posts without a problem, so somewhere it knows to use the gmail.com address? Obviously the easy solution would be to change the GDE account to show my gmail address, but I'd like my .edu address to be the public facing one ... |
@jlmcdonald for fetching the posts automatically your Google ID is used, so the email address doesn't matter there. But the system is confused because of the Google ID not matching the email in the list. Only a temporary fix, since the data is updated from a Masterlist. @SmokyBob do you think we can extend the GDE Masterlist with a second email column, one column as primary contact email (that we don't need in the DB) and one that feeds the Account list where the only purpose of the email is checking the authentication? |
@Scarygami yes can you please delete the duplicates? |
@Scarygami -- as expected that does work, now. I like your suggestion of having a "primary contact email" and an "account authentication email" column ... that should solve the problem for now (until Google's oAuth implementation can handle multiple emails on the same account!) |
@zmandel dupes deleted, kept your latest entry since it seemed to contain the most information. If you refresh you should see only one of the activities left now. @jlmcdonald unfortunately the app engine oauth methods used by cloud endpoints are rather limited and I don't think they will ever expose more than the "primary account email". |
I'm running into the same issue. I see this in the logs:
I am not using an alternate email for my login, AFAIK. |
Hmmm... your configuration looks okay to me @dlew Can you execute the following command and see if it returns your gmail address?
|
As stated by @Scarygami the "contact email" and the email associated with the user account is different. @Scarygami I think we can push/update the "primary email" with the one associated to the Gplus User when we push data from the Masterlist, and store (if needed) the email from the spreadsheet into a "contact email" field @zmandel can you please check in the log if you see a "Error during authentication" log? |
@Scarygami Here's what I get:
That should be the correct value. |
@Scarygami how do I see the log? the console log now shows this when I enter: but I havent tried committing the activity again since its already there, |
@zmandel if you see only those message you are ok. |
@dlew yup, that data matches what is there for you in the backend... confusing since this should work like this without issues, will try to investigate further |
@Scarygami I changed the title of the only activity I had from "Chrome extensions" to "Chrome extensions!", saved, and now it ended up with a new, duplicate activity instead of editing the existing one. console doesnt show any errors (other than failed to load many googledrive resources) |
@zmandel can you refresh the page and try again (added some logs)? ---------DEBUG---------- Can you please post that? |
removed the "!" from the title, and again I now have two activities listed. console: Zig Mandel On Mon, Aug 25, 2014 at 5:19 PM, Mauro Solcia notifications@github.com
|
also note that I still cant populate the combobox to the right of "title of your app". It doesnt have a displayed name, just the contents "Select type of activity" and a few hashtags in the combobox. I can drop down the combo but I cant select anything into it. |
@zmandel another thing, can you check the log for "Error in sign in flow."? If you find it "Error in sign in flow.", can you please go to https://plus.google.com/apps and de auth "GDE Tracking App", then try again to login. About the Empty Select type of activity: got it once today, seems like the redirect service (the site is hosted inside a Google Drive Folder) had a bad version of the CSS and displayed the combo too small; refreshed and it's fixed on my end. Sorry for the inconvenience |
I wasnt getting the sign-in error anymore (I havent tried commiting Failed to load resource: the server responded with a status of 404 client_id: "XXXX2318878-dik3r14d8jc528h1ao35f8ehqa7tmpe1.apps.googleusercontent.com" google_logged_in: true Error in sign in flow. client_id: "XXXX2318878-dik3r14d8jc528h1ao35f8ehqa7XXXXX.apps.googleusercontent.com" google_logged_in: true Resource interpreted as Image but transferred with MIME type On Mon, Aug 25, 2014 at 6:07 PM, Mauro Solcia notifications@github.com wrote:
|
@zmandel if it's during the page load is "correct" (it's not 100% but still works), if it's after trying to Google Plus Sign-in we have to look deeper into this issue. |
@dlew we added some logging to check what email address App Engine thinks you have. Can you try again and then comment here so I have a timestamp to check the logs? Thanks :) |
Just tried again - same issue. |
Thanks, I see the issue now, for whatever reason App Engine thinks your email is CapiTalized which makes the check against the lower-case email fail... easy to fix, stay tuned :) |
Ah, yeah, this is not actually the first time I've run into this problem. I remember having trouble getting signed up as a GDE in the first place due to capitalization. I'm not actually sure when I capitalized it, probably years ago when I first created this account - I certainly haven't typed it that way in a long time. |
Yeah, I encountered the same thing with endpoints before. It seems somewhere in the endless halls of Google's data centers your "original" Account name is remembered, and App Engine is one of the only places where this data is still accessed. |
@dlew can you try again now? |
@Scarygami Just tried it again, works now, thanks! |
One issue down, some more to go :) |
So as I'm returning to manually enter some more activities, I've discovered that, because the datastore has at some point in the last month and a half re-updated itself (and so has a .edu email address for me again), I can no longer log activities. Would the easiest thing be to just have my email address updated in the master list to my gmail account? I don't want anyone to have to manually edit the tracking app datastore every time I need to log some activities (but at the same time, I'd prefer to have my .edu address as the public facing GDE one). |
@jlmcdonald on the Account multiple emails are stored, but not really used by the app. To get the account we use the Google + id of the current logged in user. As long as you login to the app with the account you use for that account the app should work without problems, as you are logging with your "officiale" GDE Account. |
Right ... we went over this earlier. The issue with my account, however, is
So even if I log in as jarom_mcdonald@byu.edu ... the email address used as Possible solutions:
Thoughts? On Fri, Oct 17, 2014 at 7:41 AM, Mauro Solcia notifications@github.com
Dr. Jarom McDonald, PhD |
At the following address you can see you GDEApp account infos. As you can see email is not stored anymore. I've re enabled a console.log to log the current logged in |
From the logging data: gdeTrackingAPI.activity_record.insert(DATA) responded with Response Code: On Fri, Oct 17, 2014 at 12:34 PM, Mauro Solcia notifications@github.com
Dr. Jarom McDonald, PhD |
@jlmcdonald Thx now I've understood the whole problem. |
Manually created an activity with the #gdeprogram tracker, input data for title, candidate name, candidate email, and category (#interview); when I clicked on 'save' I got a javascript alert that stated "Only GDEs or Admins may enter or save data." Verified that I was properly authenticated, all my other activities were showing up, etc. Tried again with #forumpost, same result.
The text was updated successfully, but these errors were encountered: