-
-
Notifications
You must be signed in to change notification settings - Fork 91
Feat/meta data v2 #990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/meta data v2 #990
Conversation
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Outdated
Show resolved
Hide resolved
application/src/main/resources/db/V14__Alter_Help_Thread_Metadata.sql
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
Seems fine, doesn't really resolve #660 since we are not using or displaying this data. So probably a fresh issue should be created with how to move forward with interpreting and displaying this data in a meaningful and nice way, UI wise. ^^ |
True, imma remove the referenced issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code itself is fine, but the system has a crucial problem. it is not resilient at all. thread status will be incorrect in case of issues:
- if an update message is missed bc of error, the thread remains "open" in the DB
- if the bot is offline and turned on after a few days again, threads that have been closed remain "open" in the DB
there should be some sort of routine that checks threads that are marked open but are older than three days, just to make sure the metadata remains correct
should it also update other data? like message count/participants from already closed thread? or just status? |
* update constructor with HelpThreadLifecycleListener instance * using HelpThreadLifecycleListener method to clean up left over threads * increasing scope of handleArchiveStatus to package level * adding logger to MarkHelpThreadCloseInDBRoutine class
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Outdated
Show resolved
Hide resolved
...ation/src/main/java/org/togetherjava/tjbot/features/help/MarkHelpThreadCloseInDBRoutine.java
Outdated
Show resolved
Hide resolved
...ation/src/main/java/org/togetherjava/tjbot/features/help/MarkHelpThreadCloseInDBRoutine.java
Show resolved
Hide resolved
application/src/main/resources/db/V14__Alter_Help_Thread_Metadata.sql
Outdated
Show resolved
Hide resolved
didnt we remove star imports, what's up with spotless being mad about it? |
no, there's no config change. |
the problem is it's asking me to run spotless, if i do that it just turns it into a star import. |
* 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
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java
Outdated
Show resolved
Hide resolved
...ation/src/main/java/org/togetherjava/tjbot/features/help/MarkHelpThreadCloseInDBRoutine.java
Show resolved
Hide resolved
|
Adding more data from help threads to our already existing table, along with listener that updates changes done after thread creation.
ticket status
andclosedAt
when thread archived/closed.Additions:
Flow