Skip to content

Commit 7d2256c

Browse files
committed
change list
* adding data fields that are being collected in privacy policy * updating duration of data storage in privacy policy doc * HelpThreadMetadataPurger will now purge help threads data post 180 days * instead of appending new tags, only new tags are stored now
1 parent 87461c3 commit 7d2256c

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

PP.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,21 @@ The databases may store
4848
* `guild_id` of guilds the **bot** is member of (the unique id of a Discord guild),
4949
* `channel_id` of channels belonging to guilds the **bot** is member of (the unique id of a Discord channel),
5050
* `message_id` of messages send by users in guilds the **bot** is member of (the unique id of a Discord message),
51+
* `participant_count` of no of people who participated in help thread discussions,
52+
* `tags` aka categories to which these help threads belong to,
53+
* `timestamp`s for both when thread was created and closed,
54+
* `message_count` the no of messages that were sent in lifecycle of any help thread
55+
56+
_Note: Help threads are just threads that are created via forum channels, used for anyone to ask questions and get help
57+
in certain problems._
5158

5259
and any combination of those.
5360

5461
For example, **TJ-Bot** may associate your `user_id` with a `message_id` and a `timestamp` for any message that you send in a channel belonging to guilds the **bot** is member of.
5562

5663
**TJ-Bot** may further store data that you explicitly provided for **TJ-Bot** to offer its services. For example the reason of a moderative action when using its moderation commands.
5764

58-
Furthermore, upon utilization of our help service, `user_id`s and `channel_id`s are stored to track when/how many questions a user asks. The data may be stored for up to **30** days.
65+
Furthermore, upon utilization of our help service, `user_id`s and `channel_id`s are stored to track when/how many questions a user asks. The data may be stored for up to **180** days.
5966

6067
The stored data is not linked to any information that is personally identifiable.
6168

application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ public void onChannelUpdateAppliedTags(@NotNull ChannelUpdateAppliedTagsEvent ev
5858
}
5959

6060

61-
List<String> updatedTagList = threadChannel.getAppliedTags()
61+
List<String> newlyAppliedTagsOnly = event.getAddedTags()
6262
.stream()
6363
.filter(helper::shouldIgnoreTag)
6464
.map(ForumTag::getName)
6565
.toList();
66-
String tags = String.join(", ", updatedTagList);
66+
67+
String tags = String.join(", ", newlyAppliedTagsOnly);
6768

6869
long threadId = threadChannel.getIdLong();
6970

application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadMetadataPurger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
public class HelpThreadMetadataPurger implements Routine {
1919
private final Database database;
2020
private static final Logger logger = LoggerFactory.getLogger(HelpThreadMetadataPurger.class);
21-
private static final Period DELETE_MESSAGE_RECORDS_AFTER = Period.ofDays(30);
21+
private static final Period DELETE_MESSAGE_RECORDS_AFTER = Period.ofDays(180);
2222

2323
/**
2424
* Creates a new instance.
@@ -31,7 +31,7 @@ public HelpThreadMetadataPurger(Database database) {
3131

3232
@Override
3333
public Schedule createSchedule() {
34-
return new Schedule(ScheduleMode.FIXED_RATE, 0, 4, TimeUnit.HOURS);
34+
return new Schedule(ScheduleMode.FIXED_RATE, 0, 1, TimeUnit.DAYS);
3535
}
3636

3737
@Override

0 commit comments

Comments
 (0)