WillTrem / UInnovate

MIT License
3 stars 1 forks source link

224 - Audit Trails #310

Closed MariaR001 closed 6 months ago

MariaR001 commented 6 months ago

A user with access to the settings page can see all actions logged in the Audit Trails tab. Currently all working actions in the settings are logged.

Try different things like updating something, deleting, adding, etc. Then go to the Audit Trails in the Settings and see logged info.

github-actions[bot] commented 6 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 39.64% 951 / 2399
🔵 Statements 40.08% 997 / 2487
🔵 Functions 32.8% 226 / 689
🔵 Branches 25.27% 253 / 1001
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
UInnovateApp/src/components/settingsPage/AuditTrails.tsx 8.33% 0% 0% 9.09% 17, 19-30, 20-23, 25-29, 27, 27-28, 32-34, 33, 36-39
UInnovateApp/src/components/settingsPage/ColumnConfig.tsx 47.82% 20% 75% 45.45% 62-74, 70, 73, 76-81, 86-98, 94, 97, 100-105
UInnovateApp/src/components/settingsPage/CronJobsTab.tsx 29.59% 15.78% 23.52% 28.08% 51-63, 53-54, 56, 58-60, 59, 62, 67-71, 73-93, 74-92, 77-78, 80-86, 90-91, 97-100, 102-122, 103-121, 106-107, 109-115, 119-120, 126, 126, 128-130, 132-133, 136, 136, 138, 142-143, 145-148, 146-147, 150-153, 155-158, 161-163, 166-184, 169, 169, 171-183, 172-182, 173-181, 185-195, 186, 189-194, 198, 200, 209-211, 216, 221-222, 235, 238-240, 257, 265, 265-266, 266, 283-287, 306-310
UInnovateApp/src/components/settingsPage/EnvVarCreator.tsx 57.5% 33.33% 30.76% 56.41% 29, 32, 36-46, 52, 56-58, 63, 94-97, 109-112, 119-127, 127, 163-175
UInnovateApp/src/components/settingsPage/InternationalizationTab.tsx 38.7% 13.33% 35.13% 39.33% 54-63, 55, 57-60, 57-60, 62, 79, 83, 109-137, 110-114, 112-113, 116-123, 125, 125, 127-130, 132-133, 136, 165, 178-204, 179-187, 190, 192-201, 193-194, 196-200, 198-199, 203, 206-212, 216, 220-221, 225, 262, 278-289, 279-286, 290, 358, 394-397, 397, 400-404, 401-403, 402, 406-411, 407-410, 408-409, 413-417, 414, 416, 419-425, 420-424, 421-423, 427-433, 428-432, 430-431, 436-474, 437-465, 438-444, 447, 450-462, 452, 454, 457-461, 459-460, 464, 467-473, 476-486, 477-484, 478-480, 479, 483, 488-490, 489, 492-494, 493, 496-501, 497-500, 499, 503-551, 534
UInnovateApp/src/components/settingsPage/LookupSetting.tsx 12.85% 2.94% 12.5% 11.94% 31-37, 32-33, 36, 48-52, 49, 51, 55-65, 56-62, 57, 60-61, 69-89, 70-87, 78-80, 92-94, 93, 96-113, 97-105, 104, 107-112, 115-133, 116-125, 124, 127-132, 137-151, 137-151, 138-143, 145-150, 154-170, 155-162, 156, 159-161, 164-169, 172-188, 173-180, 174-177, 180-187, 190-204, 191-196, 198-203, 208-247, 217-219, 243
UInnovateApp/src/components/settingsPage/ScriptEditor.tsx 6.06% 0% 0% 6.25% 33-35, 35-38, 40-75, 41, 43-56, 45-46, 48-49, 51-52, 54-55, 58, 60-64, 66, 68-74, 77-162, 88, 96, 99-102, 118, 126, 131-135, 146
UInnovateApp/src/components/settingsPage/ScriptingTab.tsx 56.75% 21.42% 36.36% 55.55% 30, 47, 51, 55-59, 61-63, 65-71, 86-92, 92-106, 100-103, 130-134, 150-154
UInnovateApp/src/components/settingsPage/TableConfigTab.tsx 50% 22.22% 57.14% 48.71% 26, 44-51, 47, 50, 53-58, 62-69, 65, 68, 71-76, 80-87, 83, 86, 89-94, 105
UInnovateApp/src/components/settingsPage/UserLogs.tsx 8.33% 0% 0% 9.09% 17, 19-30, 20-23, 25-29, 27, 27-28, 32-34, 33, 36-39
UInnovateApp/src/components/settingsPage/Users/AddUserModal.tsx 84.09% 78.57% 76.92% 83.33% 59-60, 89-92, 91, 93, 139
UInnovateApp/src/components/settingsPage/Users/RolesTab.tsx 40.29% 44% 50% 36.5% 33-35, 34, 36-37, 100-101, 103-116, 109-111, 114-115, 118-120, 119, 122-128, 132-133, 135-166, 137-148, 141-143, 146-147, 152-165, 158-160, 163-164, 168-174, 184, 202
UInnovateApp/src/components/settingsPage/Users/UserManagementTab.tsx 40% 22.72% 38.46% 41.46% 33, 80-87, 81-86, 88, 114-116, 116-118, 118-119, 119, 121-124, 126-131, 135-137, 139-144, 148-154, 149, 151-153, 152, 157-169
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewEditor.tsx 41.86% 19.23% 21.42% 42.5% 25-26, 26-38, 28-29, 31-37, 40-49, 67, 71-77, 73-76, 79-85, 88-89, 89, 101, 131-181, 154-157, 173-175, 174, 194
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewModal.tsx 45.23% 33.33% 35.71% 42.5% 39-43, 46-47, 51-61, 65-74, 70-71, 75-77, 76, 93, 102, 112, 127
UInnovateApp/src/pages/Settings.tsx 61.53% 54.16% 33.33% 60% 64, 92, 95, 98, 102, 106, 111, 116, 121, 153
UInnovateApp/src/virtualmodel/Audits.ts 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/__mocks__/DataAccessor.tsx 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/__mocks__/VMD.tsx 89.65% 100% 85.71% 89.65% 47-48, 55
Unchanged Files
UInnovateApp/src/api/AxiosCustom.ts 66.66% 75% 50% 66.66% 11, 31-33, 36
UInnovateApp/src/components/AddRowPopup.tsx 57.14% 25% 60% 55% 23-26, 30-34, 32-33, 36-42, 44-48, 50-51
UInnovateApp/src/components/Dropzone.tsx 24.44% 8% 9.09% 25% 16, 20-47, 26-42, 44-46, 45, 51-57, 54-56, 58, 62-70, 74-80, 84-85, 118-161, 123, 133
UInnovateApp/src/components/FunctionLoadPopup.tsx 4.76% 0% 0% 4.76% 15-16, 18-22, 19-21, 24-41, 25-40, 26, 29-39, 30-31, 33, 35-36, 38, 43, 45-58, 60-63, 65-106
UInnovateApp/src/components/FunctionPopup.tsx 66.66% 100% 0% 66.66% 31-51, 56-74
UInnovateApp/src/components/NavBar.tsx 56.25% 84.61% 33.33% 61.53% 28-29, 31-35, 34, 36
UInnovateApp/src/components/ScriptLoadPopup.tsx 4.54% 0% 0% 4.54% 15-16, 18-22, 19-21, 24-42, 25-41, 26, 29-40, 30-32, 34, 36-37, 39, 44, 46-59, 61-64, 66-107
UInnovateApp/src/components/ScriptPopup.tsx 66.66% 100% 0% 66.66% 31-51, 56-74
UInnovateApp/src/components/TableEnumView.tsx 67.64% 50% 33.33% 67.64% 35, 42, 54-56, 63, 71, 85-90, 88, 105, 112
UInnovateApp/src/components/TableListView.tsx 54.49% 32% 40.81% 54.87% 149, 181, 210-213, 212, 214, 223-224, 249, 259, 266, 276, 282, 286, 289, 293, 297, 300, 304, 310, 316, 347-349, 357, 363-364, 369, 379-413, 399-411, 411-412, 414-416, 415, 417-419, 418, 420, 424-447, 440-446, 441-445, 448, 448-451, 459-461, 460, 462-464, 463, 465-481, 468-469, 471-480, 472-480, 475-476, 478-479, 483-486, 483-486, 491, 493-497, 495-496, 499-506, 508-510, 512-521, 520, 522-523, 531, 558, 558-559, 568-579, 569-570, 572-576, 573, 575, 578, 585, 599, 640, 644-646, 678-819, 679-686, 689-819, 690-697, 700-819, 701-708, 711-819, 712-725, 718, 727-819, 728-741, 734, 743-819, 744-764, 753-754, 760-762, 766-819, 767-778, 775-776, 781-819, 782-789, 792-819, 793-816, 802-803, 809-815, 846, 849, 854, 866, 871-873, 872, 890, 897, 907-927, 920, 922, 933-934, 943-962, 955, 957, 968-969, 1006, 1027, 1058, 1061-1063, 1062, 1064-1085, 1110, 1163-1170, 1211-1218, 1256
UInnovateApp/src/components/UnauthorizedScreen.tsx 20% 100% 0% 20% 6, 8-10, 9, 11-21
UInnovateApp/src/components/Schema/DisplayType.tsx 100% 100% 100% 100%
UInnovateApp/src/components/Schema/MenuSchemaSelector.tsx 77.77% 61.53% 83.33% 76.47% 35, 39-41
UInnovateApp/src/components/Schema/SchemaSelector.tsx 52% 28.57% 30% 52% 26-28, 33, 36-57, 45, 51, 61-75, 70-72, 79-93, 88-90, 124
UInnovateApp/src/components/TableListViewComponents/DeleteRowButton.tsx 74.35% 38.46% 100% 72.97% 25-26, 56-61, 63-79, 65-73, 75-77, 76, 82, 99-105
UInnovateApp/src/components/TableListViewComponents/LookUpTableDetails.tsx 35.29% 8.69% 23.07% 36.73% 32, 42-48, 43-44, 47, 57-94, 59-92, 60-63, 62, 64-67, 66, 68-69, 69-80, 79, 82-89, 84-87, 86, 88, 90, 90, 93, 96-135, 114, 120-126, 122-124
UInnovateApp/src/components/settingsPage/DisplayTab.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/EnvVarValueEditor.tsx 11.11% 100% 0% 11.11% 14-16, 18, 20-35, 26, 30-31
UInnovateApp/src/components/settingsPage/ExecuteProcedures.tsx 50% 64.28% 31.81% 47.61% 38, 55, 59, 63-67, 69-71, 74-85, 80, 83-84, 89-102, 91-92, 94, 96-99, 97-98, 101, 105-111, 108-109, 111, 132-135, 139-141, 152-155, 166-169, 194-198, 214-218
UInnovateApp/src/components/settingsPage/FunctionViewer.tsx 6.25% 0% 0% 6.25% 28-29, 31-33, 35-42, 36-39, 37-38, 41, 43-70, 44, 46-59, 48-49, 51-52, 54-55, 57-58, 61, 63-67, 69, 72-136, 83, 91, 94-97, 113, 125
UInnovateApp/src/components/settingsPage/GeneralTab.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/MultiSelect.tsx 33.33% 50% 22.22% 36.36% 15, 22, 22, 26-43, 28-40, 32-34, 33, 38
UInnovateApp/src/components/settingsPage/Scripting.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/SignupModal.tsx 26.17% 14.4% 8.33% 24.3% 64, 68-72, 77-80, 85-89, 97-99, 98, 100-123, 105, 109-122, 110-118, 112-117, 121, 129-132, 130-131, 137-140, 138-139, 145-146, 150-152, 151, 154-155, 157-191, 158-180, 162-168, 170-171, 174-176, 179, 181-191, 184-190, 188-189, 196, 199-257, 201-211, 202-211, 206-207, 210, 213-219, 214-215, 218, 222-237, 223-237, 227-237, 231-237, 235-236, 240-245, 241, 243-244, 248-254, 249-250, 253, 256, 431-439, 436-437, 440-496, 456-457, 463-464, 479-488
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewTab.tsx 100% 100% 100% 100%
UInnovateApp/src/enums/ErrMsg.ts 100% 100% 100% 100%
UInnovateApp/src/enums/ViewTypeEnum.tsx 61.53% 33.33% 50% 58.33% 10-15, 11-14
UInnovateApp/src/helper/RolesHelpers.ts 0% 0% 0% 0% 10-21, 13-16, 14-15, 17, 19-20, 29-37, 32-33, 35-36
UInnovateApp/src/helper/SettingsHelpers.ts 27.27% 50% 33.33% 27.27% 37-41, 43-47, 54-79, 60-64, 68-72, 74-78, 81
UInnovateApp/src/redux/AdditionalViewSlice.tsx 71.42% 100% 0% 71.42% 20-24
UInnovateApp/src/redux/AuthSlice.tsx 25.8% 50% 16.66% 23.33% 37-38, 41-44, 47, 50-55, 57, 59-60, 63-64, 67-68, 72-74
UInnovateApp/src/redux/LoadingSlice.tsx 66.66% 100% 0% 66.66% 15
UInnovateApp/src/redux/NotificationSlice.tsx 55.55% 100% 33.33% 55.55% 24-26, 29
UInnovateApp/src/redux/SchemaSlice.tsx 100% 100% 100% 100%
UInnovateApp/src/redux/Store.ts 100% 100% 100% 100%
UInnovateApp/src/redux/UserDataSlice.tsx 15.38% 0% 0% 15.38% 15, 18-28, 21-27, 22-23, 26, 29-31, 30, 32
UInnovateApp/src/virtualmodel/AdditionalViewsDataAccessor.ts 41.86% 20% 40% 43.9% 30, 30, 49-89, 51-84, 52-62, 65, 68-81, 83, 87-88, 93-122, 95-100, 102-116, 103-111, 114-115, 117, 119-121
UInnovateApp/src/virtualmodel/Config.ts 81.81% 100% 42.85% 80.64% 33-41, 43-55, 46-48, 51-54, 68
UInnovateApp/src/virtualmodel/ConfigProperties.ts 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/DataAccessor.tsx 1.23% 0% 6.25% 1.25% 17-20, 26-42, 27, 29-33, 35-37, 36, 39, 41, 48-66, 49-53, 52, 54-57, 59-61, 60, 63, 65, 72-80, 73-75, 77, 79, 86-94, 87-89, 91, 93, 100-110, 101-104, 106, 108-109, 118-128, 119-122, 124, 126-127, 134-144, 135-138, 140, 142-143, 148-149, 151-152, 155, 157, 157, 159-187, 160-162, 161, 164-183, 165-167, 166, 169-182, 170-177, 171-176, 172-175, 179-181, 185-186, 190-204, 191-193, 192, 194-202, 195-201, 197, 199-200, 203, 208
UInnovateApp/src/virtualmodel/EnvVarAccessor.ts 14.28% 100% 0% 14.28% 5-22, 6-14, 17-18, 20-21, 26-44, 27-36, 39-40, 42-43
UInnovateApp/src/virtualmodel/FunctionAccessor.tsx 55.55% 100% 66.66% 55.55% 25-34, 26-29, 31, 33
UInnovateApp/src/virtualmodel/FunctionHandler.ts 0% 0% 0% 0% 12-13, 15-16, 19-21, 23-28, 24-27, 32-43, 33-36, 38-42, 39, 41, 46-53, 52
UInnovateApp/src/virtualmodel/Logger.ts 0% 100% 0% 0% 12-24
UInnovateApp/src/virtualmodel/PlatformFunctions.ts 2.77% 0% 0% 2.85% 16-30, 17-20, 22-24, 23-24, 26, 28-29, 34-37, 39-44, 49, 49-51, 54-55, 60, 63-67, 69, 74, 76-79, 81
UInnovateApp/src/virtualmodel/ScriptHandler.ts 0% 0% 0% 0% 12-13, 15-16, 19-21, 23-28, 24-27, 32-43, 33-36, 38-42, 39, 41, 47-59, 48-52, 54, 56, 58, 63-66, 68-72, 69, 71
UInnovateApp/src/virtualmodel/VMD.tsx 24.81% 8.79% 23.23% 24.9% 23, 29, 29, 37-39, 38, 38, 45-47, 46, 53, 59-61, 60, 67-72, 69-71, 70, 73, 83, 89, 99, 105-107, 106, 113-115, 114, 121-126, 124-125, 129, 135, 143-146, 145, 152, 161, 170-197, 173-178, 176-177, 181-186, 184-185, 189-196, 200-202, 204, 206-222, 208-213, 211-212, 216-221, 219-220, 224, 236, 244, 246-300, 248, 250-253, 252, 256, 258-261, 260, 263-265, 264, 267-269, 268, 272-299, 276-279, 282-283, 285-286, 288-289, 291-292, 294-295, 297-298, 301, 314-318, 324-332, 327-329, 331, 343-354, 346-351, 353, 368-390, 373-387, 389, 400-401, 403-412, 404-409, 411, 418-419, 421-434, 422-431, 433, 440-441, 443-456, 444-453, 455, 468-469, 471-484, 472-481, 483, 494-495, 497-510, 498-507, 509, 522-523, 525-531, 527-528, 533-546, 535-543, 545, 557-576, 560-566, 562-563, 567-573, 575, 585-593, 588-590, 592, 605-606, 608-634, 609-631, 610-615, 618-623, 621-622, 624-630, 633, 644-662, 646-656, 648-655, 657-659, 661, 680, 685, 685, 689, 694, 694, 741, 741, 753, 753, 759, 759, 802, 814, 820, 826, 832, 838, 850, 856, 862, 892, 898, 910, 922, 934, 946, 961-962
UInnovateApp/src/virtualmodel/__mocks__/FunctionAccessor.tsx 100% 100% 100% 100%
Generated in workflow #336