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

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open

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 Show resolved Hide resolved
services/QueryService.mjs Outdated Show resolved Hide resolved
services/QueryService.mjs Outdated Show resolved Hide resolved
@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.

controllers/QueryAPIController.mjs Outdated Show resolved Hide resolved
lib/common.mjs Outdated Show resolved Hide resolved
lib/ARSClient.mjs Outdated Show resolved Hide resolved
models/Query.mjs Outdated Show resolved Hide resolved
adapters/ClientxServiceAdapter.mjs Outdated Show resolved Hide resolved
HTTPServer.mjs Show resolved Hide resolved
HTTPServer.mjs Show resolved Hide resolved
import { logger } from '../lib/logger.mjs';
import * as cmn from '../lib/common.mjs';

class ClientxServiceAdapter {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does this class have such a generic name? We have multiple clients and services in our code base, and this name gives the reader no info about what the class actually acts upon. Let's call it ARSCallbackxQueryServiceAdapter.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My thinking here was that is that the client could be generic, there is nothing specifically that ties it to a callback mechanism.

lib/ARSClient.mjs Outdated Show resolved Hide resolved
import * as cmn from '../lib/common.mjs';

class QueryService {
constructor(queryStore, clientAdapter, feAdapter) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

callbackAdapter or callbackPayloadAdapter would be a better param name than clientAdapter.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My thinking here was that is that the client could be generic, there is nothing specifically that ties it to a callback mechanism.

services/UserService.mjs Outdated Show resolved Hide resolved
@gprice1129 gprice1129 marked this pull request as ready for review January 21, 2025 23:04
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