-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Dev/next #23
Conversation
- The event model plurals are now removed - A event can now only have one label, if you need more values the new keyval item should be used so the data can be tagged properly - Added caching to queries on timestamps that is older than now
Codecov Report
@@ Coverage Diff @@
## master #23 +/- ##
==========================================
+ Coverage 82.69% 83.24% +0.55%
==========================================
Files 21 22 +1
Lines 913 967 +54
Branches 152 185 +33
==========================================
+ Hits 755 805 +50
- Misses 131 134 +3
- Partials 27 28 +1
Continue to review full report at Codecov.
|
Appveyor seems to be failing? Example:
|
I believe the reason for the AppVeyor failing is that you have a weird filename for the cache. In the latest build:
For instance, |
aw_core/views.py
Outdated
if end: | ||
end = end.strftime("%Y%m%dT%H%m%SZ") | ||
end = end.astimezone(timezone.utc).strftime("%Y%m%dT%H%m%SZ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
I am currently working on that, don't worry! I saw that before aswell. http://docs.peewee-orm.com/en/latest/peewee/models.html#id3
|
…k usage on events
aw_datastore/storages/peewee.py
Outdated
@@ -46,16 +47,21 @@ def json(self): | |||
|
|||
|
|||
class EventModel(BaseModel): | |||
bucket_id = CharField(index=True) | |||
bucket = ForeignKeyField(BucketModel, related_name='events') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably want to add a index=True
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, nice catch. Fixed
Wooo, can we merge soon? 😃 |
I don't think we need any more breaking changes for peewee storage which was the critical part, so I guess that we should be good to go. |
Now even increases coverage slightly :) |
So, this is pretty much done? One last thing:
|
@ErikBjare Works fine now, we should just make sure to merge all the other pull requests at the same time |
keyval item should be used so the data can be tagged properly