Skip to main content

Django LDP Like

Context

The goal of this repository is to make available to all of our models a Like feature, covering the like action, dislike action, and count of both use cases.

The like Model will be related to an IDURLField targetting users/ so that we will be able to relate the users and their likes in a distributed world.

Would ideally be implemented in a way which makes it compatible with the ActivityPub Like Activity

Add your package in settings.py of the app. Now, you can test if your package is imported propefully by doing a python manage.py shell then from djangoldp_myawesomepackage.models import ExampleModel

If, no error, it's working.

Planning

  1. Make it work:

Being able to post a like, a dislike. Being able to retrieve the count of likes and dislikes for a given resource Being able to do that on the federation instance bearing the current user identity

  1. Make it clean

Test it in the context of the federation Ensure we stay compliant with the activityPub specification

CICD

When you're ready to publish your app :

  1. Add the sib-deploy user as a maintainer to the project (Settings > Members)

  2. Configure pipeline strategy to clone (Settings > CI/CD > Pipelines)

  3. Protect the master branch allowing only maintainers to push (Settings > Repository > Protected branches)

  4. Configure CI/CD variables to authenticate on pypi.org:

Variable Value Protection
GL_TOKEN sib-deploy-token protected
PYPI_PASSWORD pypi-password protected
PYPI_USERNAME startinblox protected
  1. Replace the "do_not_publish" by "master" in the .gitlab-ci.yml

Factories

If you dont need factory, you can remove the mock_example command, the factories files and the extras_require section in setup.cfg

Provide a factory is a good pratice in order to simplify the mocking of data on a server / in a test pipeline.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangoldp_like-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangoldp_like-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file djangoldp_like-0.0.2.tar.gz.

File metadata

  • Download URL: djangoldp_like-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9

File hashes

Hashes for djangoldp_like-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0eb8f0ed113c187a35709477e079e993faf6fe8b693a9e753c194c05bc60543c
MD5 95071d689a6499a7fa7670754850bdbb
BLAKE2b-256 aeeadb292adc9f6dcce903ebc06c87cc423b87ab37328e6e1bc7f16141ee2385

See more details on using hashes here.

File details

Details for the file djangoldp_like-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: djangoldp_like-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9

File hashes

Hashes for djangoldp_like-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a31cf300505c10d74f2f65647d1a19f55c787815ed81766ee1dc42ae8fad4f89
MD5 85401b3ca9d9b01394819d9c434be444
BLAKE2b-256 3a34e847f6cd590dfb5cab3e0f47c417efc031fd746373cbfba1293508fb7f47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page