Commit Graph

17 Commits

Author SHA1 Message Date
e2dc9b8d33 Moved to Poetry 2019-04-26 12:23:44 +02:00
d1713f93b3 Notifications regression: Notifications not created
Notifications for when someone posted a comment on your node
was not created.

Root cause was that default values defined in schema was not set,
resulting in activity subscriptions not being active.
There were 2 bugs preventing them to be set:
* The way the caching of markdown as html was implemented caused
  default values not to be set.
* Eve/Cerberus regression causes nested default values to fail
  https://github.com/pyeve/eve/issues/1174

Also, a 3rd bug caused nodes without a parent not to have a
subscription.

Migration scripts:
How markdown fields is cached has changed, and unused properties
of attachments has been removed.
./manage.py maintenance replace_pillar_node_type_schemas

Set the default values of activities-subscription
./manage.py maintenance fix_missing_activities_subscription_defaults
2019-02-19 14:16:28 +01:00
1be31bdb22 Fix issue with task shortcodes
Part of the code assumed shortcodes were globally unique, and another part
assumed the shortcodes are unique per project (the latter is correct).

Now the project ID is taken from the URL the Subversion hook pushes to.
2018-04-19 18:14:02 +02:00
cf41599e20 Fixed authentication issues in unit tests
The tests were logging in incorrectly, which came to light due to Pillar
commit 4b5a961e1422d8e976b2bf8bb9a4f91addf9bbec.
2018-02-01 11:43:14 +01:00
4e8c735f6b Python 3.6 compatibility: Applied 2to3 2017-03-03 15:08:48 +01:00
0d9ed088be Removed unused import & small test fix 2016-11-10 15:39:49 +01:00
268d1f28e3 Include commit message in SVN activity 2016-11-10 15:34:03 +01:00
72e903d192 Added AbstractAttractTest.attract property 2016-11-10 15:34:03 +01:00
4d5c02c196 Usable SVN activities 2016-11-02 11:06:29 +01:00
e249f3d062 Added unittest for SVN push hook 2016-11-02 11:06:29 +01:00
bc58b6d5ac Moved Subversion stuff to its own module, and unified push & pull approaches 2016-11-02 11:06:29 +01:00
2819f86e10 Some SVN 0.3.43 interface changes. 2016-09-29 16:28:41 +02:00
2f5e99205a Renamed attract_server → attract 2016-09-07 10:04:31 +02:00
a89e98c556 Properly handle SVN connection/client errors.
This requires my fork of the SVN library, until pull request #43 is merged
upstream: https://github.com/dsoprea/PySvn/pull/43
2016-08-31 16:42:21 +02:00
8b618c3ecb SVN log messages can be None. 2016-08-31 15:59:45 +02:00
268a40092e SVN doesn't like requesting logs for non-existent revisions
If revisions 1-130 exist, it errors at "svn log -r 1:250", so we can't
reliably give a last number. Easiest solution is to just forego per-batch
processing, and fetch all the unseen entries in one go.
2016-08-31 15:59:27 +02:00
0c9b31c4b4 Added SVN logging observer.
It isn't triggered by anything yet. When the observer is called, it uses
Blinker to send out a signal for every [T12345] marker it sees in the
first line of each commit log. Those signals aren't connected to anything
yet.

NOTE: this requires the 'svn' Python module , which is a wrapper for the
'svn' commandline client. This client needs to be installed on our docker
when we deploy.
2016-08-31 14:31:45 +02:00