Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
0.3

See merge request cn-tsn/project/eden/aggregator!71
  • Loading branch information
Alexander Schneider committed Nov 30, 2018
2 parents 03fb7a8 + 3f7374e commit 9495b9e
Show file tree
Hide file tree
Showing 33 changed files with 942 additions and 457 deletions.
6 changes: 0 additions & 6 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ DATABASE_PASSWORD=kI1BtN@rCbh2i6wg7EiEO*FwcdugST7s

HOSTNAME=hhu.de

DBAS_AUTHN_SECRET=89#s3cr3t_15
DBAS_DB_HOST=db
DBAS_DB_PORT=5432
DBAS_DB_USER=postgres
DBAS_DB_NAME=discussion
DBAS_DB_PW=DXxCNtfnt!MOo!f8LY1!P%sw3KGzt@s!
AUTHN_SECRET=89#s3cr3t_15
DB_PORT=5432
DB_USER=postgres
Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ stages:
- deploy

cache:
key: "$CI_JOB_NAME"
paths:
- ~/.m2
- /root/.m2
- aggregator/.m2
untracked: true

variables:
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 0.3
Major Changes with 0.3
* The user is not a simple String anymore. The user is now a map containing the public Screenname (`:name`), the `:id` and the `dgep-native` flag which is set when the user is native to the aggregator stated in `identifier.aggregator-id`.
* Shorthands for adding statements and whole arguments just by text all accept a author-id and assume the author is local to the current DGEP instance.
* Shorthands for adding arguments and statements now accept additional fields trhough the `additional` map. You can add any custom field there. Attributes added here will be first-class on the resulting statements. This means that adding `additional: {"foo" "bar"}` will add a field `:foo` with the value `bar` to the resulting statement.
* Added support for first-class reference search.
* A `reference` field is expected to contain a `:text`, `:host` and `:path`
* References can be searched by host- and text-content in the corresponding routes (See `/index.html#!/statements` for an overview)
* Other custom fields can be searched via `/statements/custom`
* A bug with the DBAS-Connector has been fixed and now again produces correct links.
1 change: 1 addition & 0 deletions aggregator/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ pom.xml.asc
/.nrepl-port
.hgignore
.hg/
.m2/
52 changes: 26 additions & 26 deletions aggregator/db/set1/arguments.edn
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
[{:content {:author "deka" :content-string "der Kampf unentschieden ausfällt" :created nil} :identifier {:aggregate-id "aggregator:8888" :entity-id "1" :version 1} :delete-flag false :predecessors []}
{:content {:author "dekan" :content-string "der Kampf nicht unentschieden ausfallen kann. Zu irgend einem Zeitpunkt wird nur noch genau ein Tier leben. Dieses hat gewonnen" :created nil} :identifier {:aggregate-id "aggregator:8888" :entity-id "2" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "diepfe" :content-string "die Pferde fliehen und die meisten überleben werden"} :identifier {:aggregate-id "aggregator:8888" :entity-id "3" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "woot" :content-string "sie ihre Energien aneinander aufrauchen werden und dann umfallen"} :identifier {:aggregate-id "aggregator:8888" :entity-id "4" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "diepfe" :content-string "die Pferde fliehen und die meisten somit überleben werden"} :identifier {:aggregate-id "aggregator:8888" :entity-id "5" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Wendy" :content-string "wenn die Pferde fliehen, gibt es keinen Kampf. Nach Vorraussetzung der Frage findet aber ein Kampf statt"} :identifier {:aggregate-id "aggregator:8888" :entity-id "6" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Pazi" :content-string "man alles dran setzen sollte, den ewigen Konflikt zu beenden"} :identifier {:aggregate-id "aggregator:8888" :entity-id "10" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "elkawe" :content-string "der Kampf ein wundervolles Entertainment ist"} :identifier {:aggregate-id "aggregator:8888" :entity-id "11" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Adolf" :content-string "beide Abnormitäten aus dem Genpool entfernt werden sollten"} :identifier {:aggregate-id "aggregator:8888" :entity-id "12" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Hans" :content-string "diese Abnormitäten sich durchaus behaupten können"} :identifier {:aggregate-id "aggregator:8888" :entity-id "14" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Peta" :content-string "Tiere nur aussterben sollten, wenn sie sich nicht behaupten können"} :identifier {:aggregate-id "aggregator:8888" :entity-id "16" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Piece" :content-string "Frieden das beste für unsere Welt ist"} :identifier {:aggregate-id "aggregator:8888" :entity-id "17" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "!Leroy" :content-string "es besser ist, wenn sich diese aggressiven Tiere sich gegenseitig beschäftigen"} :identifier {:aggregate-id "aggregator:8888" :entity-id "18" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "LongJohn" :content-string "sie sich im Frieden verbünden könnten. Anschließend könnten wir die gejagten sein. Eine neue Ära der Unterdrückung unter Herrschaft von tyrannischen Hühnern und grausamen Pferdchen erwartet uns"} :identifier {:aggregate-id "aggregator:8888" :entity-id "20" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Johnny" :content-string "Und wen grillen wir, wenn sich die Viecher nicht gegenseitig abmurksen"} :identifier {:aggregate-id "aggregator:8888" :entity-id "21" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "elkawe" :content-string "Frieden zwischen Riesenhühnern und Mini-Pferden sehr langweilig ist"} :identifier {:aggregate-id "aggregator:8888" :entity-id "22" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Piece" :content-string "Frieden unser größtes Ziel sein sollte :)"} :identifier {:aggregate-id "aggregator:8888" :entity-id "23" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Reuter" :content-string "einem egal sein sollte wer von beiden Verliert"} :identifier {:aggregate-id "aggregator:8888" :entity-id "35" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Johnny" :content-string "wenn alle leben, kann man alle Essen! Lecker Lasagne"} :identifier {:aggregate-id "aggregator:8888" :entity-id "36" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Johnny" :content-string "Lasagne schmeckt immer gut! Mjam Mjam Mjam"} :identifier {:aggregate-id "aggregator:8888" :entity-id "40" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Menschenfreund" :content-string "Es ist besser Nutztiere zu halten als die Ausrottung einer potenziell köstlichen Nahrungsquelle zu riskieren. Lasagne"} :identifier {:aggregate-id "aggregator:8888" :entity-id "41" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Melvin" :content-string "wir dann möglicherweise zu wenig Daten generieren"} :identifier {:aggregate-id "aggregator:8888" :entity-id "42" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Haniball" :content-string "Fleisch ist Fleisch"} :identifier { :aggregate-id "aggregator:8888" :entity-id "43" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Susi" :content-string "die 100 Pferde deutlich aufwendiger zuzubereiten sind"} :identifier { :aggregate-id "aggregator:8888" :entity-id "44" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Johnny" :content-string "Das Riesen Huhn brät ewig auf dem Grill"} :identifier {:aggregate-id "aggregator:8888" :entity-id "45" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author "Haniball" :content-string "das Huhn natürlich (mit geringem Aufwand) vorher zerlegt werden muss"} :identifier {:aggregate-id "aggregator:8888" :entity-id "46" :version 1} :delete-flag false :predecessors []}]
[{:content {:author {:name "deka" :dgep-native false :id 123} :text "der Kampf unentschieden ausfällt" :created nil} :identifier {:aggregate-id "aggregator:8888" :entity-id "1" :version 1} :delete-flag false :predecessors []}
{:content {:author {:name "dekan" :dgep-native false :id 123} :text "der Kampf nicht unentschieden ausfallen kann. Zu irgend einem Zeitpunkt wird nur noch genau ein Tier leben. Dieses hat gewonnen" :created nil} :identifier {:aggregate-id "aggregator:8888" :entity-id "2" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "diepfe" :dgep-native false :id 123} :text "die Pferde fliehen und die meisten überleben werden"} :identifier {:aggregate-id "aggregator:8888" :entity-id "3" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "woot" :dgep-native false :id 123} :text "sie ihre Energien aneinander aufrauchen werden und dann umfallen"} :identifier {:aggregate-id "aggregator:8888" :entity-id "4" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "diepfe" :dgep-native false :id 123} :text "die Pferde fliehen und die meisten somit überleben werden"} :identifier {:aggregate-id "aggregator:8888" :entity-id "5" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Wendy" :dgep-native false :id 123} :text "wenn die Pferde fliehen, gibt es keinen Kampf. Nach Vorraussetzung der Frage findet aber ein Kampf statt"} :identifier {:aggregate-id "aggregator:8888" :entity-id "6" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Pazi" :dgep-native false :id 123} :text "man alles dran setzen sollte, den ewigen Konflikt zu beenden"} :identifier {:aggregate-id "aggregator:8888" :entity-id "10" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "elkawe" :dgep-native false :id 123} :text "der Kampf ein wundervolles Entertainment ist"} :identifier {:aggregate-id "aggregator:8888" :entity-id "11" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Adolf" :dgep-native false :id 123} :text "beide Abnormitäten aus dem Genpool entfernt werden sollten"} :identifier {:aggregate-id "aggregator:8888" :entity-id "12" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Hans" :dgep-native false :id 123} :text "diese Abnormitäten sich durchaus behaupten können"} :identifier {:aggregate-id "aggregator:8888" :entity-id "14" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Peta" :dgep-native false :id 123} :text "Tiere nur aussterben sollten, wenn sie sich nicht behaupten können"} :identifier {:aggregate-id "aggregator:8888" :entity-id "16" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Piece" :dgep-native false :id 123} :text "Frieden das beste für unsere Welt ist"} :identifier {:aggregate-id "aggregator:8888" :entity-id "17" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "!Leroy" :dgep-native false :id 123} :text "es besser ist, wenn sich diese aggressiven Tiere sich gegenseitig beschäftigen"} :identifier {:aggregate-id "aggregator:8888" :entity-id "18" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "LongJohn" :dgep-native false :id 123} :text "sie sich im Frieden verbünden könnten. Anschließend könnten wir die gejagten sein. Eine neue Ära der Unterdrückung unter Herrschaft von tyrannischen Hühnern und grausamen Pferdchen erwartet uns"} :identifier {:aggregate-id "aggregator:8888" :entity-id "20" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Johnny" :dgep-native false :id 123} :text "Und wen grillen wir, wenn sich die Viecher nicht gegenseitig abmurksen"} :identifier {:aggregate-id "aggregator:8888" :entity-id "21" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "elkawe" :dgep-native false :id 123} :text "Frieden zwischen Riesenhühnern und Mini-Pferden sehr langweilig ist"} :identifier {:aggregate-id "aggregator:8888" :entity-id "22" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Piece" :dgep-native false :id 123} :text "Frieden unser größtes Ziel sein sollte :)"} :identifier {:aggregate-id "aggregator:8888" :entity-id "23" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Reuter" :dgep-native false :id 123} :text "einem egal sein sollte wer von beiden Verliert"} :identifier {:aggregate-id "aggregator:8888" :entity-id "35" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Johnny" :dgep-native false :id 123} :text "wenn alle leben, kann man alle Essen! Lecker Lasagne"} :identifier {:aggregate-id "aggregator:8888" :entity-id "36" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Johnny" :dgep-native false :id 123} :text "Lasagne schmeckt immer gut! Mjam Mjam Mjam"} :identifier {:aggregate-id "aggregator:8888" :entity-id "40" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Menschenfreund" :dgep-native false :id 123} :text "Es ist besser Nutztiere zu halten als die Ausrottung einer potenziell köstlichen Nahrungsquelle zu riskieren. Lasagne"} :identifier {:aggregate-id "aggregator:8888" :entity-id "41" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Melvin" :dgep-native false :id 123} :text "wir dann möglicherweise zu wenig Daten generieren"} :identifier {:aggregate-id "aggregator:8888" :entity-id "42" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Haniball" :dgep-native false :id 123} :text "Fleisch ist Fleisch"} :identifier { :aggregate-id "aggregator:8888" :entity-id "43" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Susi" :dgep-native false :id 123} :text "die 100 Pferde deutlich aufwendiger zuzubereiten sind"} :identifier { :aggregate-id "aggregator:8888" :entity-id "44" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Johnny" :dgep-native false :id 123} :text "Das Riesen Huhn brät ewig auf dem Grill"} :identifier {:aggregate-id "aggregator:8888" :entity-id "45" :version 1} :delete-flag false :predecessors []}
{:content {:created nil :author {:name "Haniball" :dgep-native false :id 123} :text "das Huhn natürlich (mit geringem Aufwand) vorher zerlegt werden muss"} :identifier {:aggregate-id "aggregator:8888" :entity-id "46" :version 1} :delete-flag false :predecessors []}]
Loading

0 comments on commit 9495b9e

Please sign in to comment.