-
-
Notifications
You must be signed in to change notification settings - Fork 598
Added relative date support to OfflineQuery class #1341
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
Conversation
Can you add an integration test? |
sure |
done |
@mtrezza The build is failing because of the S3 change. Can you look into it? |
@@ -1903,67 +1903,6 @@ | |||
} | |||
} | |||
}, | |||
"@parse/s3-files-adapter": { |
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.
@zanderisrael Can you revert the package-lock.json?
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 just deleted the package-lock.json file, Im not really sure why this is being tracked in the first place...
It should be gitignored since the package.json file is what we need, the lock file is generated per environment when npm installing...
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.
@zanderisrael, it is common practice to commit package-lock. It prevents unexpected behavior because it fixates dependencies to a specific version/commit. Without committing it, every installation of Parse Server could vary in its dependencies. You would just need to regenerate the file locally and commit it. The CI will then check if the new dependencies pass the tests.
@dplewis From a quick look on mobile I think any dependency on the S3 adapter should be removed from the JS SDK. The solution would be to remove any dependency in package.json and rebuild package-lock.json. If there are tests that need an adapter, then the mock adapter in Parse Server should be used. Require |
@zanderisrael You would need to delete |
ok np. |
Has there been a misunderstanding or has this PR been abandoned? |
I created a new one. I have little experience with OSS projects, sorry if I'm making a mess... |
I see, actually all that was necessary was to delete the package-lock file (as you already did), then run |
actually did that on new PR, but still tests don't pass :( |
Can you upload the PR so we can have a look at the errors. |
|
Hey about this, id like to support start of day, and end of day. In current implementation you can't set a range that is relative to today (not now) |
Since $relativeTime is supported by parse-server backend, and are possible to construct using the parse-sdk-js lib, iv added the support to the OfflineQuery class so this type of query is available when querying local pinned objects.
construction of a $relativeTime query: