Skip to content
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

2024 updates #54

Merged
merged 8 commits into from
Jul 7, 2024
Merged

2024 updates #54

merged 8 commits into from
Jul 7, 2024

Conversation

StenAL
Copy link
Owner

@StenAL StenAL commented Jul 1, 2024

Broken because GitHub runners don't support IPv6: actions/runner-images#668

Changes:
+ Akola Group
+ Infortar
+ KN Energies
- Klaipėdos nafta
- Linas Agro Group
~ Tallinna Kaubamaja Grupp -> TKM Grupp
~ Grigeo -> Grigeo Group
@StenAL StenAL force-pushed the 2024 branch 22 times, most recently from 73996b6 to 656b846 Compare July 7, 2024 18:38
The production server is running IPv6-only and has been broken for a
while because by default, Docker refuses to do IPv6 networking. This can
be fixed by adding a custom network to the compose file. Java will still
try to use IPv6, but this can be worked around by setting the
_JAVA_OPTIONS environment variable.
The previous types were lying a bit: by having e.g. KeyStats extend
Record<ColumnId, ...> TypeScript it to have all the properties of
ColumnId, even though it only had some of them. Also, instead of
copy-pasting definitions from the backend types to RenderedData, it is
now built from TS utility types to remove potential for errors.

This enabled removing some copy-pasting in App.tsx where the rendered
data was being created.

It also required some extra casts in Reducer.ts's
compareStocksByAttribute method. Also, instead of filtering the stocks
list to ensure the compared property exists (which now had type errors),
the comparison method handles `undefined` values properly.
Nothing too noteworthy. MariaDB removed mysql compatibility symlinks in
v11 so now Docker compose files need to use mariadbd instead of mysqld
as the entrypoint.
This avoids a bunch of manual one-time set-up for the server, e.g.
installing Docker and creating a systemd service. This also removes a
dependency on some third party GitHub actions.
This avoids a bunch of manual one-time set-up for the server, e.g.
installing and configuring Nginx. This also removes a dependency on some
third party GitHub actions.
@StenAL StenAL merged commit fc1439f into main Jul 7, 2024
4 checks passed
@StenAL StenAL deleted the 2024 branch July 7, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant