Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

FC-0001: Remove EdxRestApiClient usage in edx-analatycis-data-api #542

Conversation

UvgenGen
Copy link
Contributor

@UvgenGen UvgenGen commented Apr 7, 2022

@openedx-webhooks
Copy link

Thanks for the pull request, @UvgenGen! I've created OSPR-6585 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@openedx-webhooks openedx-webhooks added needs triage open-source-contribution PR author is not from Axim or 2U labels Apr 7, 2022
Copy link
Contributor

@dianakhuang dianakhuang 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 to me. I'll send it over to the owning team for review!

@codecov
Copy link

codecov bot commented Apr 7, 2022

Codecov Report

Merging #542 (68b0bf1) into master (b58dd45) will increase coverage by 0.15%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #542      +/-   ##
==========================================
+ Coverage   97.36%   97.51%   +0.15%     
==========================================
  Files          61       61              
  Lines        3832     3826       -6     
  Branches      537      537              
==========================================
  Hits         3731     3731              
+ Misses         71       65       -6     
  Partials       30       30              
Impacted Files Coverage Δ
...tics_data_api/management/commands/generate_data.py 98.19% <0.00%> (+3.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b58dd45...68b0bf1. Read the comment docs.

@ashultz0 ashultz0 assigned ashultz0 and unassigned ashultz0 Apr 7, 2022
@ashultz0 ashultz0 self-requested a review April 7, 2022 15:16
except AttributeError:
logger.warning("LMS_BASE_URL is not configured! Cannot get video ids.")
return None
logger.info("Assuming the Course Blocks API is hosted at: %s", api_base_url)
Copy link
Contributor

Choose a reason for hiding this comment

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

this log seems unnecessary and noisy, although to be fair there is some more untouched noisy logging in here

'depth': 'all',
'block_types_filter': 'video'
}
response = self.get(urljoin(api_base_url, 'blocks/'), params=blocks_kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

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

this urljoin could just be rolled into the top urljoin

which points out that it isn't really api_base_url, it is url_of_this_blocks_call

Copy link
Contributor

@ashultz0 ashultz0 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 of things I might like a tiny bit differently but then I read at the top that we're only using this client at the data API level for a specific fake course data command so they're not super important

@dianakhuang dianakhuang merged commit 07dfeb0 into openedx-unsupported:master Apr 12, 2022
@openedx-webhooks
Copy link

@UvgenGen 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
merged open-source-contribution PR author is not from Axim or 2U
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants