Skip to content

Conversation

@stefannica
Copy link
Contributor

Describe changes

The restriction to use Repository inside step is an antiquated measure that has become a nuisance. This PR replaces it with a warning and removes some other unneeded code designed to address this same problem.

Pre-requisites

Please ensure you have done the following:

  • I have read the CONTRIBUTING.md document.
  • If my change requires a change to docs, I have updated the documentation accordingly.
  • If I have added an integration, I have updated the integrations table and the corresponding website section.
  • I have added tests to cover my changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other (add details above)

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added internal To filter out internal PRs and issues bug Something isn't working labels Jul 22, 2022
@stefannica stefannica force-pushed the bug/allow-repo-access branch from 5340bd4 to f723e71 Compare July 22, 2022 15:08
Copy link
Contributor

@fa9r fa9r left a comment

Choose a reason for hiding this comment

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

Love the change! Only major question I have: are there some methods in Repository() that really should not be used from within a step and might lead to weird behavior?

"@step(enable_cache=False)\n",
"def prediction_service_loader() -> BaseService:\n",
" \"\"\"Load the model service of our train_evaluate_deploy_pipeline.\"\"\"\n",
" repo = Repository(skip_repository_check=True)\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

why was this removed? Isn't it still nicer to suppress those warning when running the quickstart?

Copy link
Contributor

Choose a reason for hiding this comment

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

same for the other change below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you had a valid point here. I didn't want to expose users to this hidden variable, so I removed it from here. But the correct way to hide it is to detect whether a step has caching enabled from within the step and only show that warning if that is the case. Which is what I did in the last commit.

@stefannica stefannica force-pushed the bug/allow-repo-access branch from f723e71 to 875c51b Compare July 25, 2022 19:39
@stefannica stefannica force-pushed the bug/allow-repo-access branch from 875c51b to 47e258f Compare July 26, 2022 09:05
@stefannica stefannica merged commit cb6d2a3 into develop Jul 26, 2022
@stefannica stefannica deleted the bug/allow-repo-access branch July 26, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working internal To filter out internal PRs and issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants