Code Monkey home page Code Monkey logo

calendar_app's Introduction

Hi there ๐Ÿ‘‹

Visit virajc.tech to know more about me.

calendar_app's People

Contributors

virajvchavan avatar

Stargazers

 avatar

Watchers

 avatar

calendar_app's Issues

Use background jobs wherever appropriate

Possible use case:
When user logs in for the first time, currently all of his calendars with all the events are loaded all at once, and then only user is redirected to auth/:provider/callback.

If user has thousands of events, it may take a long time to load the events, and even lead to a timeout before redirecting to our website. It'll be better to start a background job and then return a success response immediately. Then just find a way to show the newly loaded events as they come. (websockets?)

Need better test coverage

Current test cases cover only validations, associations and some other standard things.
Need test cases for the following and more:

  • Controllers
  • GoogleCalendarApi
  • User creation during OAuth flow

Create a Channel model for implementing webhooks properly

Currently there is no abstraction over Google Calendar API's registered webhooks (Notification channels).

We are relying on custom tokens sent on each webhook registration to identify which resources to update. Along with that we're storing sync_tokens for resources in their respective models.

Currently there is no way to cancel a webhook because we are not persisting its channel_id. Which means even if we delete a resource from our system, we'll keep getting callback requests for those resources.

A new model called 'NotificationChannel' can provide a simple interface for dealing with this. A NotificationChannel can belong to any resource that is being watched. This will also eliminate the need to store sync_tokens in respective models.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.