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

New feature/context page #7

Merged
merged 50 commits into from
Nov 12, 2024
Merged

New feature/context page #7

merged 50 commits into from
Nov 12, 2024

Conversation

EvanHughes-dev
Copy link
Contributor

Test the crap out of. Ignore the test data. That should be cleared soon.

README.md Outdated Show resolved Hide resolved
Copy link

@tmb5932 tmb5932 left a comment

Choose a reason for hiding this comment

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

I didnt find anything wrong w it besides MECE spelling, and some spacing/formatting. Neither are actually like, important, so i trust youll at least resolve my comments before merging.

README.md Outdated Show resolved Hide resolved
TelemetrySite/server/Context/context.py Outdated Show resolved Hide resolved
Copy link
Contributor

@mjmagee991 mjmagee991 left a comment

Choose a reason for hiding this comment

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

Nice work on this. That's one hell of a PR right there. I made one good pass trying to get an idea of what is going on with the project overall. I skimmed over some stuff and tried not to nitpick too much because it's a prototype, but I mostly wanted to make sure things are relatively clean.

Before merging, be sure to have someone download and set up everything on their computer from scratch. Also, spend some extra time trying to break your context upload stuff. While it's just a prototype, we are going to let MECEs touch it, so if there's a way to break it, they'll find it

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
TelemetrySite/server/Context/context.py Outdated Show resolved Hide resolved
TelemetrySite/server/Context/context.py Outdated Show resolved Hide resolved
TelemetrySite/server/Context/context.py Outdated Show resolved Hide resolved

return jsonify(configData).get_data(as_text=True), 200

def post(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should Context have a member function post, or should there be a function in another class that accepts an instance of Context to post? I don't think we need to do it the right way for the prototype, but I'd be interested to see if there was a good standard

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm probably fine leaving it like this, but I would like some explanation for why you think it post should be a member function. To me, it seems like it would make more sense to have all the SQL in a single file instead of sprinkled across multiple, but I haven't thought through the whole design. Why do you want it this way? Or are you planning to change it later?

TelemetrySite/server/server.py Show resolved Hide resolved
Co-authored-by: Matthew Magee <[email protected]>
EvanHughes-dev and others added 2 commits October 24, 2024 17:36
Co-authored-by: Matthew Magee <[email protected]>
Co-authored-by: Matthew Magee <[email protected]>
Copy link
Contributor

@mjmagee991 mjmagee991 left a comment

Choose a reason for hiding this comment

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

A couple little details, but looks pretty good. Nice work!

TelemetrySite/client/src/ServerCall.jsx Outdated Show resolved Hide resolved
TelemetrySite/client/src/contextForm/ContextForm.jsx Outdated Show resolved Hide resolved
Comment on lines +143 to +145
* Call to the python API. For each of the config
* forms, get any saved configs that are in the DB.
* Set them to the corresponding dropdown option
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a huge deal, but your line limit for comments is inconsistent. We should look at getting an auto-formatter after the prototype is good to go

TelemetrySite/client/src/contextForm/ContextForm.jsx Outdated Show resolved Hide resolved

return jsonify(configData).get_data(as_text=True), 200

def post(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm probably fine leaving it like this, but I would like some explanation for why you think it post should be a member function. To me, it seems like it would make more sense to have all the SQL in a single file instead of sprinkled across multiple, but I haven't thought through the whole design. Why do you want it this way? Or are you planning to change it later?

TelemetrySite/server/Context/context.py Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you use an autoformatter to do this?

host = os.getenv("HOST"),
port = os.getenv("PORT")
)
database="bert",
Copy link
Contributor

Choose a reason for hiding this comment

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

@tmb7852 At some point, it would be pretty cool if the database was not named bert

@EvanHughes-dev EvanHughes-dev merged commit d13271a into main Nov 12, 2024
3 checks passed
@EvanHughes-dev EvanHughes-dev deleted the new_feature/context_page branch November 12, 2024 00:03
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.

4 participants