Skip to content

Commit 284d7db

Browse files
authored
- SERT 24.2.8 (#20)
## Fixes in this Merge - github#16 When custom image used for application, it does not render in SERT - avoid reference to sert_core tables within APP for AOP and DocGen - SERT Open Source - How to enable AOP - move sert_pub AOP grants to aop product folder - comments don't appear after creation when running sert in other workspaces - sert_core.schedule_api.process_eval_summary_results fails with large result sets - After uploading exception from API, no exceptions are logged
2 parents ff1c649 + ed613fa commit 284d7db

30 files changed

+200
-672
lines changed

development/scripts/reset.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ declare
1919
e_table_not_found exception;
2020
pragma exception_init(e_table_not_found, -00942);
2121
begin
22-
execute immediate 'truncate table acdc.' || p_table;
22+
execute immediate 'truncate table ' || p_table;
2323
-- if table doesnt exist, just continue without error
2424
exception when e_table_not_found then null;
2525
end clear_lb_table;

doc/install_guide.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Oracle internal only:
6262

6363
* [https://gbuconfluence.oraclecorp.com/display/CDSTS/Integrating+OCI+Document+Generator+Function](https://gbuconfluence.oraclecorp.com/display/CDSTS/Integrating+OCI+Document+Generator+Function)
6464

65+
once you have a working DocGen service, you can set preferences in the APEX-SERT administration application by navigating to Setup → Preferences and providing the required data values.
66+
6567
#### 2.1.2. Resources
6668

6769
In order to install APEX-SERT, you will need access to the following system resources:
@@ -131,7 +133,7 @@ sert_admin_id = 2001
131133
sert_aop_url = https://localhost:8010
132134
# set an administrator email
133135
sert_admin_email_address = [email protected]
134-
sert_email_from = noreply@oracle.com
136+
sert_email_from = noreply@me.com
135137
# don't change sert_mode unless you know what it will do to you
136138
sert_mode = standalone
137139

product/.DS_Store

6 KB
Binary file not shown.

product/sert/.DS_Store

6 KB
Binary file not shown.

product/sert/apex/application/f2100/application/pages/page_00001.sql

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- file_checksum: 6B36091A60FAE7AC12E0E813DC023B4679934A012EFB6CD47CF1C1490685DB57
1+
-- file_checksum: EA357CD31452CA074CE441806E51FDCD7B2DE39972DAAEC59A0ED6386D63A85D
22
-------------------------------------------------------------------------------
33
-- Copyright (c) 2024,2025 Oracle and/or its affiliates.
44
-- Licensed under the Universal Permissive License v 1.0 as shown
@@ -25,6 +25,7 @@ wwv_flow_imp_page.create_page(
2525
,p_allow_duplicate_submissions=>'N'
2626
,p_warn_on_unsaved_changes=>'N'
2727
,p_autocomplete_on_off=>'OFF'
28+
,p_javascript_code_onload=>'$(''.fa-user'').addClass(''fa-apex'').removeClass(''fa-user'');'
2829
,p_page_template_options=>'#DEFAULT#:t-PageBody--noContentPadding'
2930
,p_required_role=>'MUST_NOT_BE_PUBLIC_USER'
3031
,p_page_component_map=>'13'
@@ -89,6 +90,11 @@ wwv_flow_imp_page.create_page_plug(
8990
' ,null as actions',
9091
' ,job_status',
9192
' ,job_status_css ',
93+
' ,case ',
94+
' when app_icon is not null then ',
95+
' ''r/'' || workspace || ''/'' || application_id || ''/files/static/v6/'' ||app_icon',
96+
' else null',
97+
' end as app_image2',
9298
' ,app_image',
9399
' ,approved_score as score',
94100
' ,score_css',
@@ -112,8 +118,8 @@ wwv_flow_imp_page.create_page_plug(
112118
,p_landmark_type=>'region'
113119
,p_attributes=>wwv_flow_t_plugin_attributes(wwv_flow_t_varchar2(
114120
'APPLY_THEME_COLORS', 'Y',
115-
'AVATAR_IMAGE', '{"source":"URL_COLUMN","urlColumn":"APP_IMAGE"}',
116-
'AVATAR_SHAPE', 't-Avatar--noShape',
121+
'AVATAR_IMAGE', '{"source":"URL_COLUMN","urlColumn":"APP_IMAGE2"}',
122+
'AVATAR_SHAPE', 't-Avatar--square',
117123
'AVATAR_TYPE', 'image',
118124
'BADGE_COL_WIDTH', 't-ContentRow-badge--sm',
119125
'BADGE_LABEL', 'SCORE',
@@ -156,6 +162,16 @@ wwv_flow_imp_page.create_region_column(
156162
,p_use_as_row_header=>false
157163
,p_is_primary_key=>false
158164
);
165+
wwv_flow_imp_page.create_region_column(
166+
p_id=>wwv_flow_imp.id(62612774281786801)
167+
,p_name=>'APP_IMAGE2'
168+
,p_source_type=>'DB_COLUMN'
169+
,p_source_expression=>'APP_IMAGE2'
170+
,p_data_type=>'VARCHAR2'
171+
,p_display_sequence=>260
172+
,p_use_as_row_header=>false
173+
,p_is_primary_key=>false
174+
);
159175
wwv_flow_imp_page.create_region_column(
160176
p_id=>wwv_flow_imp.id(88383790703070152)
161177
,p_name=>'APEX_VERSION'

product/sert/apex/application/f2100/application/pages/page_00210.sql

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- file_checksum: DB4608D6767F5085A760CAB1CA5D61AD3634E949CD220C03EDB7F12DB60F687D
1+
-- file_checksum: 9B9EC54A7CD217C14679ED613B8C34C8EE1B90BAAD634463A9528F9AB2E957E6
22
-------------------------------------------------------------------------------
33
-- Copyright (c) 2024,2025 Oracle and/or its affiliates.
44
-- Licensed under the Universal Permissive License v 1.0 as shown
@@ -160,7 +160,7 @@ wwv_flow_imp_page.create_page_da_action(
160160
' ca.category_name, ',
161161
' (select application_id || '' '' || application_name ',
162162
' from apex_applications',
163-
' where application_id = (select application_id from sert_core.evals where eval_id = :P10_EVAL_ID) ',
163+
' where application_id = (select application_id from sert_core.evals_v where eval_id = :P10_EVAL_ID) ',
164164
' ) application_name, ',
165165
' cursor(',
166166
' select ',
@@ -181,27 +181,16 @@ wwv_flow_imp_page.create_page_da_action(
181181
' er1.item_name,',
182182
' er1.current_value,',
183183
' decode(er1.result,''FAIL'',NULL,er1.result) approved_flag',
184-
' --ex1.exception justification, @MZ issue here, as these 2 are not listed in eval_results_v',
185-
' -- ex1.reason rejection',
186184
' from',
187185
' sert_core.eval_results_pub_v er1,',
188-
' --sert_core.eval_results_v er2, @MZ we prbably don''t need this ref here',
189-
' sert_core.categories ca1',
190-
' where 1=1 --er1.eval_result_id = er2.eval_result_id',
191-
' and er1.category_key = ca.category_key',
192-
' and er1.eval_id = :P10_EVAL_ID --SYS_CONTEXT(''SV_SERT_CTX'', ''COLLECTION_ID'')',
186+
' sert_core.categories_v ca1',
187+
' where er1.category_key = ca.category_key',
188+
' and er1.eval_id = :P10_EVAL_ID ',
193189
' and er1.result not like ''%PASS%''',
194190
' and er1.category_key = ca1.category_key',
195191
' order by ca1.category_id, er1.rule_id',
196192
' ) as "rule"',
197-
' from sert_core.categories ca',
198-
' /*',
199-
' where exists',
200-
' (select 1 from sert_core.eval_results er',
201-
' where er.eval_id = :P10_EVAL_ID --SYS_CONTEXT(''SV_SERT_CTX'', ''COLLECTION_ID'') ',
202-
' and er.category_key = ca.category_key --no category_key in er',
203-
' and er.result not like ''%PASS%'')',
204-
' */',
193+
' from sert_core.categories_v ca',
205194
' order by ca.category_id',
206195
' ) as "category"',
207196
' from dual',

product/sert/apex/application/f2100/application/pages/page_00220.sql

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- file_checksum: A2B6E827E8FEB3E95C11828EA7DFCA3A8C1ED77920015203C9C037585E2C96E2
1+
-- file_checksum: F26A5ABF1F29000B3E07911F69809A643C8137A535C579A3BB7B70D46444E414
22
-------------------------------------------------------------------------------
33
-- Copyright (c) 2024,2025 Oracle and/or its affiliates.
44
-- Licensed under the Universal Permissive License v 1.0 as shown
@@ -172,7 +172,7 @@ wwv_flow_imp_page.create_page_da_action(
172172
' ru.fix, ',
173173
' (select application_id || '' '' || application_name ',
174174
' from apex_applications',
175-
' where application_id = (select application_id from sert_core.evals where eval_id = :P10_EVAL_ID) ',
175+
' where application_id = (select application_id from sert_core.evals_v where eval_id = :P10_EVAL_ID) ',
176176
' ) application_name, ',
177177
' cursor(',
178178
' select ',
@@ -193,19 +193,18 @@ wwv_flow_imp_page.create_page_da_action(
193193
' from',
194194
' sert_core.eval_results_pub_v er1',
195195
' where er1.category_key = ca.category_key',
196-
' and er1.eval_id = :P10_EVAL_ID --SYS_CONTEXT(''SV_SERT_CTX'', ''COLLECTION_ID'')',
196+
' and er1.eval_id = :P10_EVAL_ID',
197197
' and er1.rule_id = ru.rule_id',
198198
' and er1.result not like ''%PASS%''',
199199
' order by er1.rule_name',
200200
' ) as "rule"',
201201
' from ',
202-
' sert_core.categories ca,',
203-
' sert_core.rules ru',
204-
' where 1=1',
205-
' and ru.category_id = ca.category_id',
202+
' sert_core.categories_v ca,',
203+
' sert_core.rules_pub_v ru',
204+
' where ru.category_key = ca.category_key',
206205
' and exists',
207-
' (select 1 from sert_core.eval_results er',
208-
' where er.eval_id = :P10_EVAL_ID --SYS_CONTEXT(''SV_SERT_CTX'', ''COLLECTION_ID'') ',
206+
' (select 1 from sert_core.eval_results_pub_v er',
207+
' where er.eval_id = :P10_EVAL_ID',
209208
' and er.rule_id = ru.rule_id',
210209
' and er.result not like ''%PASS%'')',
211210
' order by ca.category_id, ru.rule_name',

product/sert/apex/application/f2100/application/pages/page_00230.sql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- file_checksum: BECE348A9ABF620F5A62DC96D4254FDF516562CED8E236CA42AAC3606A3A5136
1+
-- file_checksum: 7528C7C5069675A704D86C6216B38D3A9ADA5695D652473B88126B71D55DA1F9
22
-------------------------------------------------------------------------------
33
-- Copyright (c) 2024,2025 Oracle and/or its affiliates.
44
-- Licensed under the Universal Permissive License v 1.0 as shown
@@ -160,7 +160,6 @@ wwv_flow_imp_page.create_page_da_action(
160160
' select ''docx'', blob_content ',
161161
' from apex_application_files ',
162162
' where filename = ''GIS_Evaluation_Exception_Report_Template.docx'' ',
163-
'-- where filename = ''GIS_exception_basic.docx'' ',
164163
' and flow_id = :APP_ID'))
165164
,p_attribute_11=>wwv_flow_string.join(wwv_flow_t_varchar2(
166165
'select',
@@ -175,7 +174,7 @@ wwv_flow_imp_page.create_page_da_action(
175174
' crd.rule_name, ',
176175
' (select application_id || '' '' || application_name ',
177176
' from apex_applications',
178-
' where application_id = (select application_id from sert_core.evals where eval_id = :P10_EVAL_ID) ',
177+
' where application_id = (select application_id from sert_core.evals_v where eval_id = :P10_EVAL_ID) ',
179178
' ) application_name, ',
180179
' cursor(',
181180
' select ',
@@ -213,7 +212,7 @@ wwv_flow_imp_page.create_page_da_action(
213212
' er.rule_id,',
214213
' er.rule_name',
215214
' from',
216-
' sert_core.categories ca,',
215+
' sert_core.categories_v ca,',
217216
' sert_core.eval_results_pub_v er',
218217
' where er.eval_id = :P10_EVAL_ID ',
219218
' and er.category_key = ca.category_key',

product/sert/apex/application/f2100/application/pages/page_00240.sql

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- file_checksum: 0E8FBC4FD6D14EE5243B6FD11186E09B557A071BB3C2BA504B5242B4441AF44F
1+
-- file_checksum: 0494FBA829BE0E841599C9F2619A6F5DB766BBF8388655BE77954CC0898E12AD
22
-------------------------------------------------------------------------------
33
-- Copyright (c) 2024,2025 Oracle and/or its affiliates.
44
-- Licensed under the Universal Permissive License v 1.0 as shown
@@ -178,18 +178,19 @@ wwv_flow_imp_page.create_page_da_action(
178178
' ca.category_name, ',
179179
' (select application_id || '' '' || application_name ',
180180
' from apex_applications',
181-
' where application_id = (select application_id from sert_core.evals where eval_id = :P10_EVAL_ID) ',
181+
' where application_id = (select application_id from sert_core.evals_v where eval_id = :P10_EVAL_ID) ',
182182
' ) application_name, ',
183183
' cursor(',
184184
' select ru1.rule_name,',
185185
' ru1.rule_id,',
186186
' count(*) rule_count',
187-
' from sert_core.rules ru1',
188-
' where ru1.category_id = ca.category_id',
187+
' from sert_core.rules_v ru1',
188+
' where ru1.category_key = ca.category_key',
189+
' and apex_version = :G_APEX_VERSION',
189190
' group by ru1.rule_name, ru1.rule_id',
190191
' order by ru1.rule_name',
191192
' ) as "rule"',
192-
' from sert_core.categories ca',
193+
' from sert_core.categories_v ca',
193194
' order by ca.category_id',
194195
' ) as "category"',
195196
' from dual',

product/sert/apex/application/f2100/application/shared_components/logic/build_options.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- file_checksum: 6A492B0C3CA4612E995AB1A4A293288458F3031701707DED84091ADCEF9754A9
1+
-- file_checksum: 83F5471531D346EBAFABCB3981027C3CCF0E805774E3C965CD1E893D0947D009
22
-------------------------------------------------------------------------------
33
-- Copyright (c) 2024,2025 Oracle and/or its affiliates.
44
-- Licensed under the Universal Permissive License v 1.0 as shown
@@ -28,7 +28,7 @@ wwv_flow_imp_shared.create_build_option(
2828
p_id=>wwv_flow_imp.id(54925859627450308)
2929
,p_build_option_name=>'AOP'
3030
,p_build_option_status=>'INCLUDE'
31-
,p_version_scn=>44624300241151
31+
,p_version_scn=>44658456743049
3232
,p_default_on_export=>'INCLUDE'
3333
,p_on_upgrade_keep_status=>true
3434
);

product/sert/apex/application/f2100/application/shared_components/plugins/template_component/theme_42_avatar.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- file_checksum: 02B0B323C8FC1CA4269668D500D7736D0C1FC18367981838559EBF1C5E5A1700
1+
-- file_checksum: B177ECC1810413B8933055A4B4B8AC386E8B502003EA3454AAEBA4BD7E877A3F
22
-------------------------------------------------------------------------------
33
-- Copyright (c) 2024,2025 Oracle and/or its affiliates.
44
-- Licensed under the Universal Permissive License v 1.0 as shown
@@ -35,10 +35,10 @@ wwv_flow_imp_shared.create_plugin(
3535
'{endif/}'))
3636
,p_default_escape_mode=>'HTML'
3737
,p_translate_this_template=>false
38-
,p_api_version=>2
38+
,p_api_version=>1
3939
,p_standard_attributes=>'REGION_TEMPLATE'
4040
,p_substitute_attributes=>true
41-
,p_version_scn=>133929266
41+
,p_version_scn=>44685798483540
4242
,p_subscribe_plugin_settings=>true
4343
,p_help_text=>'Display an image, icon, or initials. Available as a partial template to display a single row.'
4444
,p_version_identifier=>'1.0'

product/sert/apex/application/f2100/install.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
prompt app_checksum: 9DBE56965E8E6520BCF939EC4005C1BCC5F3216B8D997E31EC9EC8F6EA7C7643
1+
prompt app_checksum: A8BF625380A5B1C6DCA63422D8883D4E62B09B32A02A5ECB109E237067AD587D
22
-------------------------------------------------------------------------------
33
-- Copyright (c) 2024,2025 Oracle and/or its affiliates.
44
-- Licensed under the Universal Permissive License v 1.0 as shown

product/sert/pre-install/base_schema.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
-- at https://oss.oracle.com/licenses/upl/
66
--------------------------------------------------------------------------------
77

8+
--changeset mipotter:sert_pub_create stripComments:false runOnChange:true runAlways:false endDelimiter:; rollbackEndDelimiter:;
9+
--preconditions onFail:MARK_RAN onError:HALT
10+
--precondition-sql-check expectedResult:0 select count(1) from all_users where username = 'SERT_PUB';
11+
create user sert_pub no authentication;
12+
--rollback not required
13+
14+
815
--changeset mipotter:sert_core_create stripComments:false runOnChange:true runAlways:false endDelimiter:; rollbackEndDelimiter:;
916
--preconditions onFail:MARK_RAN onError:HALT
1017
--precondition-sql-check expectedResult:0 select count(1) from all_users where username = 'SERT_CORE';

0 commit comments

Comments
 (0)