Introduction
As I navigate the open source seas, contributing to the Microsoft CLI for Microsoft 365, the journey has been both challenging and rewarding. In this progress update, I'll share insights into the completion of one task and the ongoing efforts for the remaining two.
Completed Task: Code Refactoring for "/logout" Route
I'm thrilled to announce the successful completion of the code refactoring for the "/logout" route. This task aimed to enhance the code structure by using res.locals.reqClientData
as the source for client data and implementing a try-catch block for effective error handling. The pull request #244 has been merged after addressing feedback and making necessary adjustments.
Changes Made:
- Replaced direct accesses to
req.body
,req.query
, andreq.params
withres.locals.reqClientData
. - Introduced a try-catch block for graceful error handling.
- Customized error messages and responses for meaningful feedback.
- Tested the refactored "/logout" route to ensure correct functionality.
The refactoring enhances the code structure, ensures consistent data retrieval, and introduces robust error handling, contributing to the overall reliability of the codebase.
Ongoing Tasks
1. Enhancing Teams Integration with Microsoft CLI
The task involves adding a command to install an app in a Teams chat. Understanding the codebase and revising TypeScript knowledge took some time. After overcoming initial challenges, I've edited 5-6 files in the Microsoft CLI for Microsoft 365 project.
Current Status:
- Explored the project structure and dependencies.
- Raised a query regarding account connectivity and received guidance from the community.
Next Steps:
- Connect a developer M365 tenant for testing.
- Finalize and create test cases.
- Submit a pull request within the next 24 hours.
2. Upgrading Teams Apps at the User Level
This task requires implementing a new command to upgrade a Teams app for a specific user. Logic for the command is ready, and I'm in the process of creating test cases before submitting a pull request.
Current Status:
- Logic for the command is complete.
- Test cases for the command is complete.
- Submitted a Pull Request.
Next Steps:
- waiting for a maintainer's review.
- Make any required changes.
Community Collaboration
The open source community has been instrumental in providing guidance and support. Special thanks to @Adam-it and others for their assistance and encouragement throughout the journey.
Conclusion
As I continue sailing through the open source seas, each challenge brings new learning opportunities. The successful completion of the "/logout" route refactoring marks a significant milestone, and I look forward to contributing further to the Microsoft CLI for Microsoft 365.
Stay tuned for more updates on this exciting open source journey! Cheers to the collaborative spirit of open source development!
Top comments (0)