-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix #2771: Add backward compatibility for misspelled telemetry import #2772
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
base: main
Are you sure you want to change the base?
Fix #2771: Add backward compatibility for misspelled telemetry import #2772
Conversation
Co-Authored-By: Joe Moura <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment for PR #2772SummaryThe implementation of backward compatibility for the misspelled telemetry import in this pull request is a thoughtful addition that addresses user needs while maintaining functionality. This review encapsulates insights on code quality, historical context, implications for related files, and specific improvement suggestions aimed at enhancing the robustness and maintainability of the code. Code Quality Findings
Historical Context and Related DiscussionsWhile I could not retrieve related pull requests due to access constraints, addressing issue #2771 demonstrates a proactive approach to user feedback and ensures that legacy code remains functional. Reviewing historical PRs that may have addressed similar issues could provide insight into best practices for documenting backward compatibility. Implications for Related FilesThe new backward compatibility module impacts the entire Conclusion and ApprovalThis implementation effectively addresses backward compatibility, promoting user satisfaction. I advise implementing the suggested improvements for deprecation warnings and expanded test coverage. Once these modifications are made, I will be pleased to approve the pull request, as it demonstrates a robust understanding of maintaining code quality and user experience. Looking forward to seeing the refined version! |
Co-Authored-By: Joe Moura <[email protected]>
Co-Authored-By: Joe Moura <[email protected]>
Co-Authored-By: Joe Moura <[email protected]>
Description
This PR fixes issue #2771 where running
crewai reset-memories -a
fails with an error:The issue occurs because older user code may contain a typo in the import statement, importing from
crewai.telemtry
instead of the correctly spelledcrewai.telemetry
. The typo was fixed in the source code in March 2024, but users with version 0.118.0 of the package still have code that contains the misspelled import.This PR adds backward compatibility by creating a
telemtry.py
module that re-exports theTelemetry
class from the correctly spelled module. This allows older code with the typo to continue working after users upgrade the package.Testing
Added a test case to verify the backward compatibility fix works correctly. Ran all tests to ensure nothing was broken.
Link to Devin run: https://app.devin.ai/sessions/2337560f8b7348d9bd606a1ac96ec598
Requested by: Joe Moura ([email protected])