Skip to content

Conversation

@nyssaaftab
Copy link
Contributor

Status:

Description

ok a couple things here

  1. i considered splitting the db into separate question and answer tables linked via relations, but this would mean additional API calls --> slower overall response.
    since we're working on a pretty small-med scale, i kept the schema as is and tried to optimize the retrieval process --> fetch all entries while sorting by question id, then second pass over all the questions to associate with the list of answers mapped to by that question id.

  2. was having some server issues since originally we try to create https server using certificates and redirect http to https, but we don't have the certificates on local machines so it fails. so for local testing now i removed the https so it just listens on a local http port, and then it'll do the old stuff if we're in a production environment. that being said it is literally all chat because my systems knowledge is extreeeemely light so do with that what you will, i might be missing something obvs here cause idk how you guys tested the external opps endpoints last year otherwise

Addresses: <(link notion task here)>

Screenshots

@nyssaaftab nyssaaftab changed the base branch from main to qa-forum November 13, 2025 00:09
@kikis05
Copy link
Contributor

kikis05 commented Nov 19, 2025

Thank you @nyssaaftab! I'm trying to run the code but it seems to return an empty list at http://localhost:4000/qas? If there's something I'm missing with respect to testing it please let me know, otherwise we can take a look at things tomorrow

Copy link
Contributor

@kikis05 kikis05 left a comment

Choose a reason for hiding this comment

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

This is great! Need to create separate API key for QA so that both external opps and QA work

Copy link
Contributor

@kikis05 kikis05 left a comment

Choose a reason for hiding this comment

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

I accidentally added a comment for another pr here, please ignore

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.

3 participants