Comments (10)
Is this due to the user_db.put_async()
call inside signin_user_db(user_db)
in auth.py
?
from gae-init.
Just noticed that 6f5143f introduced the put_async()
call; was this to record some kind of "last login" via modified
or was it needed to catch some pending updates (that should be dealt with elsewhere)?
from gae-init.
Yes.. It was the easiest way of the last seen thing and no pending updates.
from gae-init.
Hmm, I don't like the user modified simply from having logged on... in my opinion that should go into some audit trail (if an app needs that detail), while the user.modified should be reserved for actual changes to the user account/profile in that user record. But I'll sort that out in my own stuff (first). From commenting out the put_async()
locally, I didn't see any bad behaviour... but that could be a lack of proper testing on my side. Is there a particular case/procedure you're aware of that it covers?
from gae-init.
I have to admit that is not the most accurate one for last seen thingy but in a way it is.. (unless you have the remember
flag on)
I didn't want to introduce new properties or anything like that so the easiest way to do that without even affecting the performance is to do it asynchronously.. so if you are about to remove it simple delete that line and also the @ndb.toplevel
decorator... more on that in the docs.. https://developers.google.com/appengine/docs/python/ndb/async#intro
from gae-init.
Excellent, thanks for the feedback and clarification; I've no problem for gae-init
keeping things simple to get people started quickly. Not having a "last seen" feature might make it even simpler :-)
But hey, it made me learn something; so thanks!
from gae-init.
The simplest thing would be not having the user sign in at all.. :D but
like you said you learned something and it's not very intruding.. and this
line made you actually act on it in your real life project which is the
whole point..! People should go ahead and change these kind of stuff to
match their needs..
from gae-init.
Soon you might find more hidden easter eggs in the project.. it's full of small little things :)
from gae-init.
!!1
from gae-init.
hehe... nice one.. stolen from Google :)
http://www.google.com/stolen
from gae-init.
Related Issues (20)
- Google login is not working (not GAE) HOT 1
- AttributeError: 'module' object has no attribute 'get_dbs'
- gulp-help is a blocker to upgrading to gulp4 HOT 2
- Yarn doesn't work with Node v12 HOT 3
- Use of memcache is a blocker to Python 3.7 migration HOT 5
- Trouble running gulp for local testing with grpcio in app.yaml HOT 4
- Can't import numpy HOT 7
- Error with virtualenv unrecognized argument during yarn install
- Requirement for email_validator on local test run not satisfied? HOT 4
- Race condition in deploy vs creation of lib.zip HOT 2
- Inconsistencies in gulpfile task descriptions HOT 3
- Add Twitch Login
- Upgrade to Font Awesome 5
- plan to update to python 3? HOT 1
- Moment.js is a legacy project HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Import error with latest changes HOT 1
- Travis not running
- Improve cleanup in development HOT 1
- gae-init.appspot.com is down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gae-init.