Commit Graph

973 Commits

Author SHA1 Message Date
NovaFox161
e5dbe75960 Alter TIME_ISSUED col to be bigint instead of mediumtext
Don't know why it was medium text in the first place, but this is now
fixed and resolved
2020-04-09 00:15:37 -05:00
NovaFox161
f6148760f3 Fix errors relating to netty version conflicts 2020-04-08 20:04:54 -05:00
NovaFox161
6118224318 exclude netty from d4j stores redis because of possible version mismatch 2020-04-07 23:13:24 -05:00
NovaFox161
4b7025215e Flyway requires regular mysql driver which was accidentally removed 2020-04-07 22:32:44 -05:00
NovaFox161
5c0c1e514d Convert all database calls to being reactive
This commit introduces the r2dbc api for all database handling to make
it fully reactive so future updates to make the bot fully reactive.
While most calls to the database are still blocking, this does use a
reactive driver for it so further work down the line will be able to use
the database reactively without much additional work.

These changes have not been tested, and will need to be tested
thoroughly as database use is the backbone for the bot's persistence
data scheme.
2020-04-07 22:18:43 -05:00
NovaFox161
f504696229 Convert several other data classes to be immutable 2020-04-05 20:23:14 -05:00
NovaFox161
ec9d8adbbd Create WebPartialGuild for partial guild data object
Use a partial guild object instead of a full guild object when partial
is all we need so null values are not floating around.
2020-04-04 16:51:15 -05:00
NovaFox161
db05559c2a Add a few folders to .gitignore incase we forget to run mvn clean
This is so that generated files don't get included in the repo by
accident due to forgetting to clean the project after running local
tests
2020-04-04 00:12:46 -05:00
NovaFox161
60dd9c0a62 Convert several data classes to be immutable 2020-04-03 17:22:59 -05:00
NovaFox161
2040505ed6 Remove debug statements as endpoint has been sped up as best we can
Endpoint now takes about 3-4 seconds to respond all told, which is
better than the original 15 seconds on average.
2020-04-03 16:51:36 -05:00
NovaFox161
5bac8a4c51 Dannie - Parallelize Mono/Database Calls to Improve Response Times 2020-04-03 16:40:52 -05:00
NovaFox161
c369710e50 Debugging guild get endpoint taking too long to execute
Add some more debug statements to see where execution is still slowing
down. So far its at about 4-5 seconds, the goal is to get it near 1 sec.
max
2020-04-03 15:00:46 -05:00
NovaFox161
524db88f6c Debugging guild get endpoint taking too long to execute
Optimize WebGuild conversion so that it will hopefully take less than
the current ~4 seconds to execute
2020-04-02 23:28:12 -05:00
NovaFox161
20eef0e115 Debugging guild get endpoint taking too long to execute
Rewrote a whole ton of the permissions checking so that it should run
faster. Hopefully this helps speed up the guild get endpoint
significantly
2020-04-01 20:55:22 -05:00
NovaFox161
ad0168de98 Debugging guild get endpoint taking too long to execute
This should optimize numerous things including discal role permission
check
2020-04-01 02:20:50 -05:00
NovaFox161
23fad39ae6 Debugging guild get endpoint taking too long to execute
Attempt to make channel aggregating and bot nickname retrieving faster
2020-04-01 00:59:35 -05:00
NovaFox161
e3093f8c8d Add exact timestamp to logging webhooks for clearer info
Added the timestamp to the webhooks used for logging so that staff can
know easily when the message was pushed to the webhook, rather than just
when discord received it in the event of several messages within a few
seconds, as discord only shows down to the minute
2020-04-01 00:38:41 -05:00
NovaFox161
f510b5fb40 Debugging guild get endpoint taking too long to execute cont
still trying to make getting roles faster as this seems to be one of the
slowdowns.
2020-04-01 00:27:46 -05:00
NovaFox161
3fd18850af Debugging guild get endpoint taking too long to execute
Attempting to speed up part of this by rewriting how roles are converted
2020-03-31 23:27:44 -05:00
NovaFox161
036596f552 Debugging guild get endpoint taking too long to execute
We have narrowed down where the slowdown starts and ends, however there
is still a lot of things happening between there, so therefore we are
checking what parts of those sections of the code are causing issues.
2020-03-31 22:55:35 -05:00
NovaFox161
1f5668a128 Debugging guild get endpoint taking too long to execute
Its taking, on average, 10-15 seconds to handle this request. To combat
this, we are adding a bunch of debug statements to diagnose *where* the
slowdown is occurring. The next part of this debugging process is to
figure out *why* it is running slow, and how to speed it up to
acceptable speeds.
2020-03-31 22:37:50 -05:00
NovaFox161
9d48e47526 Make sure we aren't deploying to pom to the repository 2020-03-30 02:25:38 -05:00
NovaFox161
a5bd7cb444 Corrected wrongly configured repo deployment
Messed out how to deploy to repos in the poms as I forgot how to do it,
this issue is now fixed and it will correctly go through the deploy goal
while only actually deploying core to the repos.
2020-03-30 01:57:41 -05:00
NovaFox161
7729329a0b retool API to handle snowflake IDs as strings instead of longs
This is because they become out of range of JS's `number` type and cause
problems. So, by handling them as strings, and only strings withing the
API, this solves the issue and we should not run into precision issues
anymore.
2020-03-30 01:50:18 -05:00
NovaFox161
5c5b175f30 Start working on implementing calendar dashboard page 2020-03-30 00:13:16 -05:00
NovaFox161
9ddd2befd7 Fix typo causing looping through the wrong array 2020-03-28 19:28:08 -05:00
NovaFox161
4db23c4f4a Accidentally casted to ArrayList instead of creating new ArrayList 2020-03-28 19:19:37 -05:00
NovaFox161
e7295031b0 Add support for changing language in dashboard 2020-03-28 19:11:12 -05:00
NovaFox161
ffccb95e69 Remove all packaged files from repo
All packaged files, such as our js, css, and vendor files are removed
from the repository as these should become present at build time, not
during development.
2020-03-28 15:55:34 -05:00
NovaFox161
05d15b102f yellow discord icon is now locally hosted so that https isn't invalid 2020-03-28 15:14:40 -05:00
NovaFox161
7fd5c41b62 Fixing index out of bounds error for dynamic URLs 2020-03-28 15:02:33 -05:00
NovaFox161
cd14461a28 Trying to get dynamic links working with thymeleaf 2020-03-28 14:56:08 -05:00
NovaFox161
d427908d3b Change revision to 3.1.0-SNAPSHOT and add distro management
This changes the revision number to be correct, as well as add
distribution management for discal core as this is the main API the bot
uses for object handling and utilities
2020-03-28 14:45:07 -05:00
NovaFox161
1a0b1c1d01 Add showing guild shard on dashboard
This commit adds showing the shard index that the guild is expected to
be on.
2020-03-28 14:00:58 -05:00
NovaFox161
3d64b189ab My repo is now protected under SSL 2020-03-25 01:49:22 -05:00
NovaFox161
7842ef2380 Change sidebar icons and fix active highlight for selected guild.html
This commit changes the side bar icons of the modules tab to better show
their respective module, as well as fixes the active highlight on the
selected guild in the guilds tab
2020-03-16 22:24:40 -05:00
NovaFox161
b4e61a86c7 I was dumb and made an invalid thymeleaf expression 2020-03-16 21:40:17 -05:00
NovaFox161
e86995800f Start work on additional dashboard modules
This starts work on adding other dashboard modules by defining the page
in data as well as adding in links for the modules and highlighting
active page dynamically (hopefully).
2020-03-16 20:20:47 -05:00
NovaFox161
53203269a0 Add support for changing discal channel on dashboard 2020-03-13 14:09:32 -05:00
NovaFox161
98eda106d4 Last of the styling for dashboard forms 2020-03-13 01:18:41 -05:00
NovaFox161
76529f67d6 Accidentally messed up column sizing, is fixed now 2020-03-13 00:40:32 -05:00
NovaFox161
110db16fff Fix styling for dashboard forms
Dashboard forms now look much nicer now and the labels are properly
visible
2020-03-13 00:32:02 -05:00
NovaFox161
d09e65a365 Fix styling of form labels and loading icon position 2020-03-12 23:57:29 -05:00
NovaFox161
90f674e332 Made a typo resulting in null error 2020-03-12 23:45:21 -05:00
NovaFox161
9fb1d464dd Realize I confused roles and channels
I confused the handling of the control role and discal channel,
so that has now been corrected and it should work properly now
2020-03-12 23:37:45 -05:00
NovaFox161
5d265f7e2a Start work on adding control role update support
This is the initial progress on adding control role updating on the
dashboard. It probably won't work, but its progress.
2020-03-12 23:32:03 -05:00
NovaFox161
26e643f46c Add check for dashboard pages for if user is logged in
If the user is not logged in, spring will redirect the user to the main
dashboard page, instead of the dashboard guild page where it won't work
due to the API key and user info not being provided
2020-03-12 22:33:26 -05:00
NovaFox161
e851c2acce Add missing getter functions 2020-03-12 22:06:38 -05:00
NovaFox161
9e46a85d33 Remove strictPropertyInitialization false from tsconfig.json
This is in an attempt to help reduce/remove the possibility of undefined
errors
2020-03-12 21:56:37 -05:00
NovaFox161
c9c3641653 Trying to get nickname updating working
Seems it isn't picking up the bot nickname and putting it into the
request, I'm not sure exactly what is causing it, but this is an
attempt to fix it.
2020-03-12 20:41:19 -05:00