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

Bug tracker and Buganizer fixes #147

Merged
merged 1,422 commits into from
May 30, 2024
Merged

Conversation

Jeyaprakash-NK
Copy link
Collaborator

No description provided.

Jeyaprakash-NK and others added 30 commits March 27, 2024 15:09
…n-change

passing runtime version to  serverless dag
…cker-fixes

Sprint20 client bug tracker fixes
@harsha-accenture harsha-accenture requested review from ptwng and ojarjur May 29, 2024 14:37
import json
from dataproc_jupyter_plugin import credentials
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong import order (see https://peps.python.org/pep-0008/#imports).

The imports should go as follows:

  1. Standard library imports
  2. Third-party imports
  3. Same package imports

... so the credentials import (from this same package) should be after the tornado import (from a third-party package).

import pendulum
import requests
from datetime import datetime, timedelta
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong import order here.

It should be:

from datetime import datetime, timedelta
import os
import shutil
import subprocess
import uuid

from google.cloud.jupyter_config.config import gcp_account
from jinja2 import Environment, PackageLoader, select_autoescape
import pendulum
import requests

from dataproc_jupyter_plugin import urls
...

@@ -56,6 +62,7 @@ async def test_list_datasets(monkeypatch, jp_fetch):
)
assert response.code == 200
payload = json.loads(response.body)
print("payload ---------", payload)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this debugging code.

Comment on lines 34 to 41
# def mock_get(api_endpoint, headers=None):
# response = Mock()
# response.status_code = 200
# response.json.return_value = {
# "api_endpoint": api_endpoint,
# "headers": headers,
# }
# return response
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete this commented-out code

@harsha-accenture harsha-accenture requested a review from ojarjur May 30, 2024 06:51
@ptwng ptwng merged commit f00d3f4 into GoogleCloudDataproc:main May 30, 2024
2 checks passed
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.

8 participants