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

Feat/multi query management #255

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft

Conversation

gprice1129
Copy link
Collaborator

No description provided.

@gprice1129 gprice1129 requested a review from np0625 December 26, 2024 23:41
@np0625
Copy link
Collaborator

np0625 commented Dec 27, 2024

The only other thing besides my comments above is that you might want to write and test query updates now, since you're already doing most of the work, vs later.

models/Query.mjs Outdated
constructor({
id = null,
pk,
status = 0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make the statuses constants via some mechanism like export QUERY_STATUS = Object.freeze({NEW: 0, RUNNING: 1, ...});

}

async getQueryById(qid) {
return this._queryStore.retrieveUserById(qid);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cut and paste error? should be retrieveQueryBy...

}

async getQueryByPk(pk) {
return this._queryStore.retrieveUserByPk(pk);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@np0625
Copy link
Collaborator

np0625 commented Dec 27, 2024

Also, we would now need to make POST /query a privileged request, but keep the GETs unprivileged. We should probably address that in this PR also.

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

Successfully merging this pull request may close these issues.

2 participants