Giter Club home page Giter Club logo

django-monocle's People

Contributors

megamark16 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

django-monocle's Issues

Update Documentation

The README is quite outdated. Plus better documentation of the entire infrastructure, rationale, caveats, etc should be fully documented.

Make this not tied to django

Django is great and all, but this app could be useful for lots of things. Work on moving the django specific stuff to some contrib folder so you can add support for other frameworks later.

Remove restriction against HTTPS endpoints

The current admin validation explicitly disallows HTTPS endpoints, since the oEmbed spec says only HTTP should be used. However, Twitter changed their API a while back to HTTPS only, so a lot of things broke. The validation check should be removed.

Allow resource fetching to happen immediately

This is most likely only useful for local development, as asynchronous resource fetching is part of the benefit of this library, but it would be nice to be able to run a django dev server and not have to also worry about running a celery process as well.

Monocle registry for DB-backed models doesn't update across all servers

From the initial design of monocle, I wanted to avoid large amounts of excessive database calls when trying to match a url to a stored pattern. To do that, when monocle gets imported, a registry object is created in cache containing all the db models and their patterns. This in-memory object is updated with post save/delete hooks so that changes to third party providers will propagate.

This has an unintended side-effect when dealing with multiple running instances. Since the registry is stored in-memory, the post save/delete hooks only affect the object in that running instance. For example: if I change something using an admin interface on server X, another instance on server Y will not see the change.

This needs to be fixed by somehow figuring out a better way to quickly match URLs to DB patterns by one of:

  1. Caching this in-memory registry in memcached
  2. Accepting the overhead of additional DB calls, but being smart enough to limit where possible

Selective Signal Firing?

Depending on how a Django model is setup, if someone were to have a generic OEmbedURLFIeld that could contain either a URL for an internal provider or one for an external provider, the prefetch signal will always fire.

Is it worthwhile to try and figure a way to selectively fire signals for external providers only?

Less Verbose Logging

There's a lot of noise from the library that is logged at INFO level. This is helpful at times, but it should most likely be DEBUG level.

Local development instructions

Local development can be a bit of a pain, because it requires both memcached and celery. Issue #8 should help with the celery part, but there should be a setup to not be so reliant on memcached specifically.

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.