DEV Community

Rachit Chawla
Rachit Chawla

Posted on

Final Post: Navigating the Open Source Seas

Introduction

As I approach the conclusion of my open source journey, it's time to reflect on the goals achieved, the technical challenges overcome, and the lessons learned. While the task of enhancing Teams Integration with Microsoft CLI has been set aside for now, I've successfully contributed to the Microsoft CLI for Microsoft 365 by completing the code refactoring for the "/logout" route, implementing a new command for upgrading Teams apps at the user level, and laying the groundwork for further contributions.

Achieving Goals: Successes and Challenges

1. Code Refactoring for "/logout" Route

The goal was to enhance code structure by utilizing res.locals.reqClientData and implementing a try-catch block for error handling. The journey involved:

Technical Features:

  • Replaced direct accesses to req.body, req.query, and req.params with res.locals.reqClientData.
  • Introduced a try-catch block for graceful error handling.
  • Customized error messages and responses for meaningful feedback.

Achievements:

  • Merged pull request #244 after addressing feedback.
  • Enhanced the overall reliability and maintainability of the "/logout" route.

2. Upgrading Teams Apps at the User Level

Though not initially planned, I took on the task of implementing a new command to upgrade Teams apps for a specified user. Progress includes:

Technical Features (PR #5716):

  • Added 'm365 teams user app upgrade' command.
  • Specified app details and the target user for upgrading installed Teams apps.
  • Developed and tested the logic and functionality of the command.

Achievements:

  • Submitted pull request #5716 for review.
  • Awaiting feedback and collaboration with the community.

3. Enhancing Teams Integration with Microsoft CLI (Pending)

The task involves adding a command to install an app in a Teams chat. Although not fully executed, I've laid the groundwork for this contribution.

Next Steps:

  • Waiting for feedback on existing pull requests before branching for the new enhancement.
  • Planning to resume work on this task post-feedback and excluding it from Release 0.4

Learning and Community Interaction

Technical Learnings:

  • Deeper understanding of TypeScript and the Microsoft CLI for Microsoft 365 codebase.
  • Implementation of error handling best practices.
  • Contribution to a larger project with multiple dependencies.

Community Interaction:

  • Leveraged community forums and GitHub discussions for problem-solving.
  • Received guidance from community members, especially @Adam-it and others.
  • Engaged in meaningful discussions to clarify doubts and seek advice.

Conclusion

This open source journey has been a rewarding experience, marked by successes, challenges, and continuous learning. As I conclude this chapter, I am grateful for the support of the open source community and the opportunity to contribute meaningfully to the Microsoft CLI for Microsoft 365.

The future holds the promise of further contributions, with plans to resume work on the Teams Integration enhancement after receiving feedback and excluding it from Release 0.4. The collaborative spirit of open source continues to inspire, and I look forward to navigating more code seas in the future.

Cheers to the open source community and the shared passion for creating impactful software!

Top comments (0)