Skip to content

Commit 0c8fb4b

Browse files
authored
Merge pull request #541 from freehackquest/version-0.2.54
Version 0.2.54
2 parents 9a67584 + c8fd13e commit 0c8fb4b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1117
-484
lines changed

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,15 @@
6666
"memory_resource": "cpp",
6767
"random": "cpp",
6868
"regex": "cpp",
69-
"qmutex": "cpp"
69+
"qmutex": "cpp",
70+
"bit": "cpp",
71+
"codecvt": "cpp",
72+
"compare": "cpp",
73+
"concepts": "cpp",
74+
"numbers": "cpp",
75+
"semaphore": "cpp",
76+
"stop_token": "cpp",
77+
"variant": "cpp"
7078
},
7179
"files.autoSave": "off",
7280
"search.exclude": {

CHANGELOG.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,29 @@ All notable changes to fhq-server project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## [v0.2.53] - 2025-08-10 (2024 Jule 21)
8+
## [v0.2.54] - 2025-08-21 (2025 Aug 21)
9+
10+
- Fix Dockerfile
11+
- [web-admin] Fix login dialog
12+
- Fix game_update and game_update_logo
13+
- Removed ci/travis/run2_language_node_js.sh
14+
- Fix warning: return in src/database/fhq_server_database_file.cpp
15+
- Fix clang-format
16+
- Added new task for runtime migration data (update missing uuids)
17+
- Removed unsed and deprecated options
18+
- Fix TODO deprecated setWorkDir and fix behaivor when not set '-wd'
19+
- Fix pylint warnings
20+
- Fixed 'Unreachable code' in 'tests/server-api-tests/test_01_games.py' by code-scanning
21+
- Fixed 'Variable defined multiple times' in 'libfhqpm/command_code_stats.py' by code-scanning
22+
- Fixed 'Variable defined multiple times ' in 'libfhqpm/utils_shell.py' by code-scanning
23+
- Fixed 'Unreachable code' in 'libfhqpm/utils_shell.py' by code-scanning
24+
- Fix warning
25+
- Updated .vscode/settings.json
26+
- Added new field uuid to public_event table
27+
- Added EmployPublicEvents and redesing work with this employ in cmd
28+
- Added model_public_event
29+
30+
## [v0.2.53] - 2025-08-10 (2025 Jule 21)
931

1032
- Updated wsjcpp-yaml from 0.1.7 to 0.1.8
1133
- Updated years to -2025

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ list (APPEND WSJCPP_SOURCES "src/models/model_useful_link.cpp")
118118
list (APPEND WSJCPP_SOURCES "src/models/model_useful_link_comment.cpp")
119119
list (APPEND WSJCPP_SOURCES "src/models/model_useful_link_tag.cpp")
120120
list (APPEND WSJCPP_SOURCES "src/models/model_useful_link_user_favorite.cpp")
121+
list (APPEND WSJCPP_SOURCES "src/models/model_public_event.cpp")
122+
121123

122124
# validators
123125
list (APPEND WSJCPP_SOURCES "src/validators/validators.cpp")
@@ -136,15 +138,16 @@ list (APPEND WSJCPP_SOURCES "src/utils/utils_lxd.cpp")
136138

137139
# employees
138140
list (APPEND WSJCPP_SOURCES "src/employees/employ_chats.cpp")
141+
list (APPEND WSJCPP_SOURCES "src/employees/employ_database.cpp")
139142
list (APPEND WSJCPP_SOURCES "src/employees/employ_images.cpp")
140143
list (APPEND WSJCPP_SOURCES "src/employees/employ_games.cpp")
141144
list (APPEND WSJCPP_SOURCES "src/employees/employ_files.cpp")
142145
list (APPEND WSJCPP_SOURCES "src/employees/employ_notify.cpp")
143146
list (APPEND WSJCPP_SOURCES "src/employees/employ_quests.cpp")
144147
list (APPEND WSJCPP_SOURCES "src/employees/employ_server_info.cpp")
145148
list (APPEND WSJCPP_SOURCES "src/employees/employ_scoreboard.cpp")
146-
list (APPEND WSJCPP_SOURCES "src/employees/employ_database.cpp")
147149
list (APPEND WSJCPP_SOURCES "src/employees/employ_orchestra.cpp")
150+
list (APPEND WSJCPP_SOURCES "src/employees/employ_public_events.cpp")
148151
list (APPEND WSJCPP_SOURCES "src/employees/employ_leaks.cpp")
149152
list (APPEND WSJCPP_SOURCES "src/employees/employ_mails.cpp")
150153
list (APPEND WSJCPP_SOURCES "src/employees/employ_users.cpp")
@@ -153,6 +156,7 @@ list (APPEND WSJCPP_SOURCES "src/employees/employ_uuids.cpp")
153156
# tasks
154157
list (APPEND WSJCPP_SOURCES "src/tasks/runtasks.h")
155158
list (APPEND WSJCPP_SOURCES "src/tasks/runtasks.cpp")
159+
list (APPEND WSJCPP_SOURCES "src/tasks/update_database_after_server_start_task.cpp")
156160
list (APPEND WSJCPP_SOURCES "src/tasks/mail_send_task.h")
157161
list (APPEND WSJCPP_SOURCES "src/tasks/mail_send_task.cpp")
158162
list (APPEND WSJCPP_SOURCES "src/tasks/notify_to_all_task.h")
@@ -183,6 +187,7 @@ list (APPEND WSJCPP_SOURCES "src/storages/updates/update_pmlyt8k7nm_215438peu8.c
183187
list (APPEND WSJCPP_SOURCES "src/storages/updates/update_215438peu8_9gwc2tm5ah.cpp")
184188
list (APPEND WSJCPP_SOURCES "src/storages/updates/update_9gwc2tm5ah_on73sheet9.cpp")
185189
list (APPEND WSJCPP_SOURCES "src/storages/updates/update_on73sheet9_ili7looowo.cpp")
190+
list (APPEND WSJCPP_SOURCES "src/storages/updates/update_ili7looowo_8i52flwubv.cpp")
186191
list (APPEND WSJCPP_SOURCES "src/storages/updates/update0101.cpp")
187192

188193
# web-server

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ RUN python3 -u pm.py clean && ./build_simple.sh
1313
COPY ./web-user /root/web-user
1414
RUN cp -rf /root/node_modules_cache/node_modules /root/web-user
1515
WORKDIR /root/web-user
16+
RUN node -v
17+
RUN npm -v
1618
RUN npm install && npm run build-prod
1719

1820
FROM sea5kg/fhq-server-release-environment:2025-08-06

ci/travis/run.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ cd $SCRIPT_DIR/../.. # go to root of repository
2323
./ci/travis/run1_language_cpp.sh
2424
check_ret $? "run1_language_cpp"
2525

26-
./ci/travis/run2_language_node_js.sh
27-
check_ret $? "run2_language_node_js"
28-
2926
./ci/travis/run3_language_python.sh
3027
check_ret $? "run3_language_python"
3128

ci/travis/run2_language_node_js.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

libfhqpm/command_code_stats.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def execute(self, _):
9595

9696
files = UtilsFiles.get_all_files(src_wsjcpp_dir)
9797
for filepath in files:
98-
lines = UtilsFiles.safe_read_file(filepath)
9998
is_header = _fp.endswith(".h") or _fp.endswith(".hpp")
10099
is_source_code = _fp.endswith(".cpp") or _fp.endswith(".c") or _fp.endswith(".cc")
101100
if is_source_code or is_header:

libfhqpm/command_rebuild_environment_images.py

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -52,30 +52,32 @@ def __init__(self, config: PmConfig):
5252
self.__subcomamnd_name = "rebuild-environment-images"
5353
self.__debian_version = "12"
5454
self.__node_version = "24"
55-
self.__build_packages = [
56-
"make",
57-
"cmake",
58-
"gcc",
59-
"g++",
60-
"curl",
61-
"pkg-config",
62-
"libcurl4-openssl-dev",
63-
"zlib1g-dev",
64-
"libpng-dev",
65-
"default-libmysqlclient-dev",
66-
"libwebsockets-dev",
67-
"apt-utils",
68-
"build-essential",
69-
"nodejs",
70-
]
71-
self.__release_packages = [
72-
"libcurl4",
73-
"zlib1g",
74-
"libpng16-16",
75-
"libmariadb3",
76-
"libpthread-stubs0-dev",
77-
"locales",
78-
]
55+
self.__packages = {
56+
"build": [
57+
"make",
58+
"cmake",
59+
"gcc",
60+
"g++",
61+
"curl",
62+
"pkg-config",
63+
"libcurl4-openssl-dev",
64+
"zlib1g-dev",
65+
"libpng-dev",
66+
"default-libmysqlclient-dev",
67+
"libwebsockets-dev",
68+
"apt-utils",
69+
"build-essential",
70+
"nodejs",
71+
],
72+
"release": [
73+
"libcurl4",
74+
"zlib1g",
75+
"libpng16-16",
76+
"libmariadb3",
77+
"libpthread-stubs0-dev",
78+
"locales",
79+
],
80+
}
7981

8082
def get_name(self):
8183
""" return subcommand name """
@@ -131,8 +133,8 @@ def __update_dockerfile_build_env(self):
131133
132134
# basic libs
133135
RUN apt-get update && apt-get install -y --no-install-recommends \\
134-
""" + " \\\n ".join(self.__build_packages) + """ \\
135-
""" + " \\\n ".join(self.__release_packages) + """
136+
""" + " \\\n ".join(self.__packages["build"]) + """ \\
137+
""" + " \\\n ".join(self.__packages["release"]) + """
136138
137139
# RUN node --version
138140
# RUN npm --version
@@ -165,7 +167,7 @@ def __update_dockerfile_release_env(self):
165167
166168
RUN apt-get update && \\
167169
apt-get install -y \\
168-
""" + " \\\n ".join(self.__release_packages) + """
170+
""" + " \\\n ".join(self.__packages["release"]) + """
169171
170172
# RUN locale-gen en_US.UTF-8
171173
RUN sed -i -e "s/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/" /etc/locale.gen && \\

libfhqpm/utils_shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ def run_command(_command, _output=None):
7575
_output.write("ERROR: returncode " + str(_returncode) + "\n")
7676
sys.exit(_returncode)
7777
return
78-
sys.exit("Could not start process")
78+
print("ERROR: Could not start process")
79+
sys.exit(-1)
7980

8081
@staticmethod
8182
def run_command_get_output(_log, _command):
8283
""" run_command_get_output """
8384
# _log.info("Run command: " + " ".join(_command))
8485
_output = ""
85-
_returncode = -1
8686
with subprocess.Popen(
8787
_command,
8888
stdout=subprocess.PIPE,

src.wsjcpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Automaticly generated by wsjcpp@v0.2.5
22
cmake_minimum_required(VERSION 3.0)
33

4-
add_definitions(-DWSJCPP_APP_VERSION="v0.2.53")
4+
add_definitions(-DWSJCPP_APP_VERSION="v0.2.54")
55
add_definitions(-DWSJCPP_APP_NAME="fhq-server")
66

77
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

0 commit comments

Comments
 (0)