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

bugfixes: create_query is_private field name & add optional arguments to run_sql() #103

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

agaperste
Copy link
Contributor

  • fixing create_query's is_private param
  • adding performance param for run_sql

@agaperste agaperste closed this Nov 22, 2023
@agaperste agaperste reopened this Nov 22, 2023
@agaperste agaperste marked this pull request as ready for review November 22, 2023 22:40
@agaperste agaperste requested a review from RichardKeo November 22, 2023 22:40
@agaperste
Copy link
Contributor Author

Hi @bh2smith @RichardKeo, when you get a chance can you take a look? Tried to address 1 error and 1 request here. I tested manually and both functions work. Thanks in advance!

Copy link
Collaborator

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

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

Looks good, but what is up with the title of this PR? It's just a bunch of meaningless codes (I'm sure they mean something, but this public repo has no connection to your foreign task manager).

I strongly suggest renaming that before merge. Think about what you would expect people to see in the release notes (e.g. https://github.com/duneanalytics/dune-client/releases/tag/v1.3.0)

Would be nice to remove some pylint ignores in other places too.

disable=fixme,logging-fstring-interpolation
[DESIGN]
max-args=10
Copy link
Collaborator

Choose a reason for hiding this comment

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

There are probably a few ignore statements that can now be removed.

@@ -33,7 +33,7 @@ def create_query(
payload = {
"name": name,
"query_sql": query_sql,
"private": is_private,
"is_private": is_private,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should have a test, but this fix is correct

@msf msf changed the title ENG-399 and ENG-375 (fixing create_query is_private=True & adding per… bugfixes: create_query is_private field name & add optional arguments to run_sql*( Nov 23, 2023
@msf msf changed the title bugfixes: create_query is_private field name & add optional arguments to run_sql*( bugfixes: create_query is_private field name & add optional arguments to run_sql() Nov 23, 2023
@msf msf merged commit aef5949 into main Nov 23, 2023
6 checks passed
@msf
Copy link
Collaborator

msf commented Nov 23, 2023

I've fixed the commit message. Yes, we shouldn't pollute the commit history of open source repo with the task-manager issue numbers.

@bh2smith bh2smith deleted the small-CRUD-fixes branch November 23, 2023 10:24
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