cms-dev / cms-dev/cms

Think about how we could have CMS keep the data on RWS up-to-date

Open
#107 0 comments 0 reactions 1 assignee View on GitHub

@lw is already working on this.

Since Aug 3, 2013.

ps rws
Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

As outlined in many points (mainly in the documentation for RWS) there's no way for CMS to update or delete the data on RWS other than (deleting it on RWS and) restarting SS.

I can't see easy solutions to this problems. We can either add a call to a function that updates RWSs each time we modify some data on the DB (it's a hard work, and it's easy to forget something, now and in the future). Or we could periodically check the database to see if something changed and, in that case, trigger a re-send to RWS (we cannot re-send without checking (and rely on the over-writing mechanism) because this doesn't allow us to detect deletions).

Another approach would be to use the same asynchronous notifications I proposed in #106. Sure, this would make us definitely PostgreSQL-dependent, as there is no easy "fallback" (as we have with the cacher).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.