mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
feedback from discussion
This commit is contained in:
parent
b747342672
commit
9212fb1633
1 changed files with 28 additions and 2 deletions
|
@ -1,5 +1,18 @@
|
|||
# How to Trigger Activities
|
||||
|
||||
- [How to Trigger Activities](#how-to-trigger-activities)
|
||||
- [Status](#status)
|
||||
- [Context](#context)
|
||||
- [Decision](#decision)
|
||||
- [Choices](#choices)
|
||||
- [1. Transient Federation without Constraints](#1-transient-federation-without-constraints)
|
||||
- [Problem - Circularity And Inconsistency](#problem---circularity-and-inconsistency)
|
||||
- [2. Direct Federation only](#2-direct-federation-only)
|
||||
- [Discussion for option 2.](#discussion-for-option-2)
|
||||
- [3. Transient Federation and Remember Processed](#3-transient-federation-and-remember-processed)
|
||||
- [See also](#see-also)
|
||||
|
||||
|
||||
## Status
|
||||
|
||||
Proposal
|
||||
|
@ -23,7 +36,7 @@ flowchart TD
|
|||
|
||||
## Choices
|
||||
|
||||
### 1. Transient Federation
|
||||
### 1. Transient Federation without Constraints
|
||||
|
||||
In this case the star federation process would look like:
|
||||
|
||||
|
@ -54,7 +67,7 @@ flowchart TD
|
|||
Thus, the repo on instance A gets another star by this user and sends Like-Activity to the repo on instance C.
|
||||
7. The circular distribution of Like-Activities continues, since the actor is always the local FederatedUser of the sending instance.
|
||||
|
||||
### 2. Direct Federation
|
||||
### 2. Direct Federation only
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
|
@ -72,5 +85,18 @@ In this case the star federation process would look like:
|
|||
1. Instance creates FederatedUser and stars the repository.
|
||||
2. No further star federation to federated repos is triggered.
|
||||
|
||||
#### Discussion for option 2.
|
||||
|
||||
1. pro
|
||||
1. Prevent circular communication
|
||||
2. Clear semantic also in case of "Who should authorize a digital signature"
|
||||
|
||||
### 3. Transient Federation and Remember Processed
|
||||
|
||||
In this case the star federation process would look like:
|
||||
|
||||
1. Repo on an instance receives a star (regardless of whether via UI or federation)
|
||||
2. If this activity was not operated already in this instance, federate star to all repos that are set as federated repositories.
|
||||
|
||||
## See also
|
||||
|
||||
|
|
Loading…
Reference in a new issue