From 5c94cf5909ec44ddc655eec765400e6b5387008c Mon Sep 17 00:00:00 2001 From: jariolaine Date: Sun, 14 Jul 2024 10:05:26 +0300 Subject: [PATCH] Small fixes after APEX 24.1 upgrade --- .../admin/database_objects.sql | 62 ++++++------- APEX/Supporting_Objects/public/metadata.sql | 2 +- .../public/database_objects_upgrade.sql | 62 ++++++------- APEX/Upgrade/public/postupgrade.sql | 2 +- .../application/create_application.sql | 2 +- .../install/install_database_objects.sql | 82 +++++++++--------- .../globalization/messages.sql | 4 +- .../application/create_application.sql | 2 +- .../deployment/install/install_metadata.sql | 2 +- .../upgrade_database_objects_upgrade.sql | 86 +++++++++---------- .../install/upgrade_postupgrade.sql | 2 +- .../application/pages/page_00000.sql | 6 +- .../application/pages/page_00001.sql | 3 +- .../application/pages/page_00002.sql | 36 +++++--- .../application/pages/page_00006.sql | 3 +- .../application/pages/page_00014.sql | 3 +- .../application/pages/page_01001.sql | 13 ++- .../application/pages/page_01002.sql | 7 +- .../globalization/messages.sql | 4 +- Database/Views/BLOG_V_POSTS.sql | 20 ++--- Database/Views/BLOG_V_POSTS_LAST20.sql | 42 ++++----- VERSION.txt | 2 +- 22 files changed, 228 insertions(+), 219 deletions(-) diff --git a/APEX/Supporting_Objects/admin/database_objects.sql b/APEX/Supporting_Objects/admin/database_objects.sql index e90692e9..fc4594e4 100644 --- a/APEX/Supporting_Objects/admin/database_objects.sql +++ b/APEX/Supporting_Objects/admin/database_objects.sql @@ -2279,26 +2279,26 @@ select ,( select json_object( - 'post_id' : lkp_post.post_id - ,'post_title' : lkp_post.post_title + 'post_id' : lkp_next.post_id + ,'post_title' : lkp_next.post_title ) as post - from q1 lkp_post + from q1 lkp_next where 1 = 1 - and lkp_post.published_on > q1.published_on - order by lkp_post.published_on asc + and lkp_next.published_on > q1.published_on + order by lkp_next.published_on asc fetch first 1 rows only ) as next_post -- Fetch previous post id and title ,( select json_object( - 'post_id' : lkp_post.post_id - ,'post_title' : lkp_post.post_title + 'post_id' : lkp_prev.post_id + ,'post_title' : lkp_prev.post_title ) as post - from q1 lkp_post + from q1 lkp_prev where 1 = 1 - and lkp_post.published_on < q1.published_on - order by lkp_post.published_on desc + and lkp_prev.published_on < q1.published_on + order by lkp_prev.published_on desc fetch first 1 rows only ) as prev_post from q1 @@ -2464,33 +2464,33 @@ with read only -------------------------------------------------------- create or replace force view blog_v_posts_last20 as select - rownum as display_seq - ,q1.post_id as post_id - ,q1.published_on as published_on - ,q1.blogger_name as blogger_name - ,q1.post_title as post_title - ,q1.post_desc as post_desc - ,q1.category_title as category_title - ,q1.post_url as post_url - ,q1.body_html as body_html - ,q1.absolute_url as absolute_url - ,apex_string.format( + rownum as display_seq +, q1.post_id as post_id +, q1.published_on as published_on +, q1.blogger_name as blogger_name +, q1.post_title as post_title +, q1.post_desc as post_desc +, q1.category_title as category_title +, q1.post_url as post_url +, q1.body_html as body_html +, q1.absolute_url as absolute_url +, apex_string.format( p_message => 'data-item-id="%s"' ,p0 => q1.post_id ) as list_attr from ( select --+ first_rows(20) - v1.post_id - ,v1.published_on - ,v1.blogger_name - ,v1.post_title - ,v1.post_desc - ,v1.category_title - ,v1.post_url - ,v1.body_html - ,blog_url.get_post( + v1.post_id + , v1.published_on + , v1.blogger_name + , v1.post_title + , v1.post_desc + , v1.category_title + , v1.post_url + , v1.body_html + , blog_url.get_post( p_post_id => v1.post_id - ,p_canonical => 'YES' + , p_canonical => 'YES' ) as absolute_url from blog_v_posts v1 order by v1.published_on desc diff --git a/APEX/Supporting_Objects/public/metadata.sql b/APEX/Supporting_Objects/public/metadata.sql index 84150549..32a7cdc3 100644 --- a/APEX/Supporting_Objects/public/metadata.sql +++ b/APEX/Supporting_Objects/public/metadata.sql @@ -1,7 +1,7 @@ -------------------------------------------------------- -- Inserting into BLOG_SETTINGS -------------------------------------------------------- -insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values('10','0','G_APP_VERSION','STRING','INTERNAL',null,null,'Release 24.1.0.20240711'); +insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values('10','0','G_APP_VERSION','STRING','INTERNAL',null,null,'Release 24.1.0.20240714'); insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values('20','0','G_PUB_APP_ID','STRING','INTERNAL',null,null,blog_util.int_to_vc2(apex_application_install.get_application_id)); insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values('110','0','BLOG_APP_NAME','STRING','BLOG_SETTING_GROUP_GENERAL',null,null,'My Blog'); insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values('120','0','BLOG_APP_DESC','STRING','BLOG_SETTING_GROUP_GENERAL',null,null,'About Almost Everything'); diff --git a/APEX/Upgrade/public/database_objects_upgrade.sql b/APEX/Upgrade/public/database_objects_upgrade.sql index b28fb939..791b1b02 100644 --- a/APEX/Upgrade/public/database_objects_upgrade.sql +++ b/APEX/Upgrade/public/database_objects_upgrade.sql @@ -1870,26 +1870,26 @@ select ,( select json_object( - 'post_id' : lkp_post.post_id - ,'post_title' : lkp_post.post_title + 'post_id' : lkp_next.post_id + ,'post_title' : lkp_next.post_title ) as post - from q1 lkp_post + from q1 lkp_next where 1 = 1 - and lkp_post.published_on > q1.published_on - order by lkp_post.published_on asc + and lkp_next.published_on > q1.published_on + order by lkp_next.published_on asc fetch first 1 rows only ) as next_post -- Fetch previous post id and title ,( select json_object( - 'post_id' : lkp_post.post_id - ,'post_title' : lkp_post.post_title + 'post_id' : lkp_prev.post_id + ,'post_title' : lkp_prev.post_title ) as post - from q1 lkp_post + from q1 lkp_prev where 1 = 1 - and lkp_post.published_on < q1.published_on - order by lkp_post.published_on desc + and lkp_prev.published_on < q1.published_on + order by lkp_prev.published_on desc fetch first 1 rows only ) as prev_post from q1 @@ -2055,33 +2055,33 @@ with read only -------------------------------------------------------- create or replace force view blog_v_posts_last20 as select - rownum as display_seq - ,q1.post_id as post_id - ,q1.published_on as published_on - ,q1.blogger_name as blogger_name - ,q1.post_title as post_title - ,q1.post_desc as post_desc - ,q1.category_title as category_title - ,q1.post_url as post_url - ,q1.body_html as body_html - ,q1.absolute_url as absolute_url - ,apex_string.format( + rownum as display_seq +, q1.post_id as post_id +, q1.published_on as published_on +, q1.blogger_name as blogger_name +, q1.post_title as post_title +, q1.post_desc as post_desc +, q1.category_title as category_title +, q1.post_url as post_url +, q1.body_html as body_html +, q1.absolute_url as absolute_url +, apex_string.format( p_message => 'data-item-id="%s"' ,p0 => q1.post_id ) as list_attr from ( select --+ first_rows(20) - v1.post_id - ,v1.published_on - ,v1.blogger_name - ,v1.post_title - ,v1.post_desc - ,v1.category_title - ,v1.post_url - ,v1.body_html - ,blog_url.get_post( + v1.post_id + , v1.published_on + , v1.blogger_name + , v1.post_title + , v1.post_desc + , v1.category_title + , v1.post_url + , v1.body_html + , blog_url.get_post( p_post_id => v1.post_id - ,p_canonical => 'YES' + , p_canonical => 'YES' ) as absolute_url from blog_v_posts v1 order by v1.published_on desc diff --git a/APEX/Upgrade/public/postupgrade.sql b/APEX/Upgrade/public/postupgrade.sql index 23f8f1ea..a49c7115 100644 --- a/APEX/Upgrade/public/postupgrade.sql +++ b/APEX/Upgrade/public/postupgrade.sql @@ -3,7 +3,7 @@ -- Update version info -------------------------------------------------------- update blog_settings - set attribute_value = 'Release 24.1.0.20240711' + set attribute_value = 'Release 24.1.0.20240714' where 1 = 1 and attribute_name = 'G_APP_VERSION' ; diff --git a/APEX/blog_administration/application/create_application.sql b/APEX/blog_administration/application/create_application.sql index 3e59f9cf..b690f5ec 100644 --- a/APEX/blog_administration/application/create_application.sql +++ b/APEX/blog_administration/application/create_application.sql @@ -45,7 +45,7 @@ wwv_imp_workspace.create_flow( ,p_public_user=>'APEX_PUBLIC_USER' ,p_proxy_server=>nvl(wwv_flow_application_install.get_proxy,'') ,p_no_proxy_domains=>nvl(wwv_flow_application_install.get_no_proxy_domains,'') -,p_flow_version=>'Release 24.1.0.20240711' +,p_flow_version=>'Release 24.1.0.20240714' ,p_flow_status=>'AVAILABLE_W_EDIT_LINK' ,p_flow_unavailable_text=>'This application is currently unavailable at this time.' ,p_exact_substitutions_only=>'Y' diff --git a/APEX/blog_administration/application/deployment/install/install_database_objects.sql b/APEX/blog_administration/application/deployment/install/install_database_objects.sql index 72a5e11f..cafdc666 100644 --- a/APEX/blog_administration/application/deployment/install/install_database_objects.sql +++ b/APEX/blog_administration/application/deployment/install/install_database_objects.sql @@ -2309,31 +2309,31 @@ wwv_flow_imp_shared.append_to_install_script( ' ,(', ' select', ' json_object(', -' ''post_id'' : lkp_post.post_id', -' ,''post_title'' : lkp_post.post_title', +' ''post_id'' : lkp_next.post_id', +' ,''post_title'' : lkp_next.post_title', ' ) as post', -' from q1 lkp_post', +' from q1 lkp_next', ' where 1 = 1', -' and lkp_post.published_on > q1.published_on', -' order by lkp_post.published_on asc', +' and lkp_next.published_on > q1.published_on', +' order by lkp_next.published_on asc', ' fetch first 1 rows only', ' ) as next_post', '-- Fetch previous post id and title', ' ,(', ' select', ' json_object(', -' ''post_id'' : lkp_post.post_id', -' ,''post_title'' : lkp_post.post_title', +' ''post_id'' : lkp_prev.post_id', +' ,''post_title'' : lkp_prev.post_title', ' ) as post', -' from q1 lkp_post', +' from q1 lkp_prev', ' where 1 = 1', -' and lkp_post.published')) +' and lkp_prev.published')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(32897013199918411) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( '_on < q1.published_on', -' order by lkp_post.published_on desc', +' order by lkp_prev.published_on desc', ' fetch first 1 rows only', ' ) as prev_post', 'from q1', @@ -2499,33 +2499,33 @@ wwv_flow_imp_shared.append_to_install_script( '--------------------------------------------------------', 'create or replace force view blog_v_posts_last20 as', 'select', -' rownum as display_seq', -' ,q1.post_id as post_id', -' ,q1.published_on as published_on', -' ,q1.blogger_name as blogger_name', -' ,q1.post_title as post_title', -' ,q1.post_desc as post_desc', -' ,q1.category_title as category_title', -' ,q1.post_url as post_url', -' ,q1.body_html as body_html', -' ,q1.absolute_url as absolute_url', -' ,apex_string.format(', +' rownum as display_seq', +', q1.post_id as post_id', +', q1.published_on as published_on', +', q1.blogger_name as blogger_name', +', q1.post_title as post_title', +', q1.post_desc as post_desc', +', q1.category_title as category_title', +', q1.post_url as post_url', +', q1.body_html as body_html', +', q1.absolute_url as absolute_url', +', apex_string.format(', ' p_message => ''data-item-id="%s"''', ' ,p0 => q1.post_id', ' ) as list_attr', 'from (', ' select --+ first_rows(20)', -' v1.post_id', -' ,v1.published_on', -' ,v1.blogger_name', -' ,v1.post_title', -' ,v1.post_desc', -' ,v1.category_title', -' ,v1.post_url', -' ,v1.body_html', -' ,blog_url.get_post(', +' v1.post_id', +' , v1.published_on', +' , v1.blogger_name', +' , v1.post_title', +' , v1.post_desc', +' , v1.category_title', +' , v1.post_url', +' , v1.body_html', +' , blog_url.get_post(', ' p_post_id => v1.post_id', -' ,p_canonical => ''YES''', +' , p_canonical => ''YES''', ' ) as absolute_url', ' from blog_v_posts v1', ' order by v1.published_on desc', @@ -3338,12 +3338,12 @@ wwv_flow_imp_shared.append_to_install_script( '--------------------------------------------------------------------------------', '--------------------------------------------------------------------------------', '-- Private procedures and functions', -'---------------------------------------------------------')) +'------------------------------------------------------------------------------')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(32897013199918411) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -'-----------------------', +'--', '--------------------------------------------------------------------------------', '-- none', '--------------------------------------------------------------------------------', @@ -4377,12 +4377,12 @@ wwv_flow_imp_shared.append_to_install_script( ' g.group_name', ' from apex_workspace_groups g', ' left join apex_workspace_group_groups gg on g.group_name = gg.grantee_name', -' left join apex_workspace_group_users gu on g.')) +' left join apex_workspace_group_users gu on g.group_name = gu.group')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(32897013199918411) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -'group_name = gu.group_name', +'_name', ' and gu.user_name = l_user_name', ' left join apex_workspace_apex_users u on gu.user_name = u.user_name', ' and u.account_locked = ''No''', @@ -5408,12 +5408,12 @@ wwv_flow_imp_shared.append_to_install_script( ' "category": {"page": "CATEGORY", "items": "P14_CATEGORY_ID"},', ' "archive": {"page": "ARCHIVES", "items": "P15_ARCHIVE_ID"},', ' "tag": {"page": "TAG", "items": "P6_TAG_ID"},', -' "unsubscribe": {"page": "POST",')) +' "unsubscribe": {"page": "POST", "items": "P2_POST_ID')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(32897013199918411) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -' "items": "P2_POST_ID,P2_SUBSCRIPTION_ID"}', +',P2_SUBSCRIPTION_ID"}', ' }'' );', '', '-- cache rss and atom url', @@ -6435,12 +6435,12 @@ wwv_flow_imp_shared.append_to_install_script( '--------------------------------------------------------------------------------', '-- Private constants and variables', '--------------------------------------------------------------------------------', -'')) +'---------------------')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(32897013199918411) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -'--------------------------------------------------------------------------------', +'-----------------------------------------------------------', '', ' c_link_canonical_template constant varchar2(64) := '''';', ' c_link_alternate_template constant varchar2(64) := '''';', @@ -7430,12 +7430,12 @@ wwv_flow_imp_shared.append_to_install_script( ' p_blob_content => l_xml', ' ,p_mime_type => c_mime_xml', ' ,p_header_names => c_headers', -' ,p_header_values => apex_t_varchar2( l_cache_control, ''inline; filen')) +' ,p_header_values => apex_t_varchar2( l_cache_control, ''inline; filename="sitemap-categori')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(32897013199918411) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -'ame="sitemap-categories.xml"'', null )', +'es.xml"'', null )', ' ,p_charset => c_char_set', ' );', '', diff --git a/APEX/blog_administration/application/shared_components/globalization/messages.sql b/APEX/blog_administration/application/shared_components/globalization/messages.sql index 6d08894b..83cbe41a 100644 --- a/APEX/blog_administration/application/shared_components/globalization/messages.sql +++ b/APEX/blog_administration/application/shared_components/globalization/messages.sql @@ -15,13 +15,13 @@ wwv_flow_imp_shared.create_message( p_id=>wwv_flow_imp.id(55636898271377244) ,p_name=>'BLOG_APP_DESC' ,p_message_text=>'About Almost Everything' -,p_version_scn=>41373793344475 +,p_version_scn=>41374218034127 ); wwv_flow_imp_shared.create_message( p_id=>wwv_flow_imp.id(55636638660376194) ,p_name=>'BLOG_APP_NAME' ,p_message_text=>'My Blog' -,p_version_scn=>41373793344470 +,p_version_scn=>41374218034127 ); wwv_flow_imp_shared.create_message( p_id=>wwv_flow_imp.id(10038616769932485) diff --git a/APEX/blog_public_pages/application/create_application.sql b/APEX/blog_public_pages/application/create_application.sql index 9c71a5d0..ec60fb29 100644 --- a/APEX/blog_public_pages/application/create_application.sql +++ b/APEX/blog_public_pages/application/create_application.sql @@ -48,7 +48,7 @@ wwv_imp_workspace.create_flow( ,p_public_user=>'APEX_PUBLIC_USER' ,p_proxy_server=>nvl(wwv_flow_application_install.get_proxy,'') ,p_no_proxy_domains=>nvl(wwv_flow_application_install.get_no_proxy_domains,'') -,p_flow_version=>'Release 24.1.0.20240711' +,p_flow_version=>'Release 24.1.0.20240714' ,p_flow_status=>'AVAILABLE_W_EDIT_LINK' ,p_flow_unavailable_text=>'This application is currently unavailable at this time.' ,p_exact_substitutions_only=>'Y' diff --git a/APEX/blog_public_pages/application/deployment/install/install_metadata.sql b/APEX/blog_public_pages/application/deployment/install/install_metadata.sql index 7dbbda22..7f78427c 100644 --- a/APEX/blog_public_pages/application/deployment/install/install_metadata.sql +++ b/APEX/blog_public_pages/application/deployment/install/install_metadata.sql @@ -21,7 +21,7 @@ wwv_flow_imp_shared.create_install_script( '--------------------------------------------------------', '-- Inserting into BLOG_SETTINGS', '--------------------------------------------------------', -'insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values(''10'',''0'',''G_APP_VERSION'',''STRING'',''INTERNAL'',null,null,''Release 24.1.0.20240711'');', +'insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values(''10'',''0'',''G_APP_VERSION'',''STRING'',''INTERNAL'',null,null,''Release 24.1.0.20240714'');', 'insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values(''20'',''0'',''G_PUB_APP_ID'',''STRING'',''INTERNAL'',null,null,blog_util.int_to_vc2(apex_application_install.get_applica' ||'tion_id));', 'insert into blog_settings(display_seq,is_nullable,attribute_name,data_type,attribute_group_message,int_min,int_max,attribute_value) values(''110'',''0'',''BLOG_APP_NAME'',''STRING'',''BLOG_SETTING_GROUP_GENERAL'',null,null,''My Blog'');', diff --git a/APEX/blog_public_pages/application/deployment/install/upgrade_database_objects_upgrade.sql b/APEX/blog_public_pages/application/deployment/install/upgrade_database_objects_upgrade.sql index c46b65a4..6fc41ec2 100644 --- a/APEX/blog_public_pages/application/deployment/install/upgrade_database_objects_upgrade.sql +++ b/APEX/blog_public_pages/application/deployment/install/upgrade_database_objects_upgrade.sql @@ -1900,26 +1900,26 @@ wwv_flow_imp_shared.append_to_install_script( ' ,(', ' select', ' json_object(', -' ''post_id'' : lkp_post.post_id', -' ,''post_title'' : lkp_post.post_title', +' ''post_id'' : lkp_next.post_id', +' ,''post_title'' : lkp_next.post_title', ' ) as post', -' from q1 lkp_post', +' from q1 lkp_next', ' where 1 = 1', -' and lkp_post.published_on > q1.published_on', -' order by lkp_post.published_on asc', +' and lkp_next.published_on > q1.published_on', +' order by lkp_next.published_on asc', ' fetch first 1 rows only', ' ) as next_post', '-- Fetch previous post id and title', ' ,(', ' select', ' json_object(', -' ''post_id'' : lkp_post.post_id', -' ,''post_title'' : lkp_post.post_title', +' ''post_id'' : lkp_prev.post_id', +' ,''post_title'' : lkp_prev.post_title', ' ) as post', -' from q1 lkp_post', +' from q1 lkp_prev', ' where 1 = 1', -' and lkp_post.published_on < q1.published_on', -' order by lkp_post.published_on desc', +' and lkp_prev.published_on < q1.published_on', +' order by lkp_prev.published_on desc', ' fetch first 1 rows only', ' ) as prev_post', 'from q1', @@ -2085,33 +2085,33 @@ wwv_flow_imp_shared.append_to_install_script( '--------------------------------------------------------', 'create or replace force view blog_v_posts_last20 as', 'select', -' rownum as display_seq', -' ,q1.post_id as post_id', -' ,q1.published_on as published_on', -' ,q1.blogger_name as blogger_name', -' ,q1.post_title as post_title', -' ,q1.post_desc as post_desc', -' ,q1.category_title as category_title', -' ,q1.post_url as post_url', -' ,q1.body_html as body_html', -' ,q1.absolute_url as absolute_url', -' ,apex_string.format(', +' rownum as display_seq', +', q1.post_id as post_id', +', q1.published_on as published_on', +', q1.blogger_name as blogger_name', +', q1.post_title as post_title', +', q1.post_desc as post_desc', +', q1.category_title as category_title', +', q1.post_url as post_url', +', q1.body_html as body_html', +', q1.absolute_url as absolute_url', +', apex_string.format(', ' p_message => ''data-item-id="%s"''', ' ,p0 => q1.post_id', ' ) as list_attr', 'from (', ' select --+ first_rows(20)', -' v1.post_id', -' ,v1.published_on', -' ,v1.blogger_name', -' ,v1.post_title', -' ,v1.post_desc', -' ,v1.category_title', -' ,v1.post_url', -' ,v1.body_html', -' ,blog_url.get_post(', +' v1.post_id', +' , v1.published_on', +' , v1.blogger_name', +' , v1.post_title', +' , v1.post_desc', +' , v1.category_title', +' , v1.post_url', +' , v1.body_html', +' , blog_url.get_post(', ' p_post_id => v1.post_id', -' ,p_canonical => ''YES''', +' , p_canonical => ''YES''', ' ) as absolute_url', ' from blog_v_posts v1', ' order by v1.published_on desc', @@ -2510,13 +2510,13 @@ wwv_flow_imp_shared.append_to_install_script( ' :new.created_on := coalesce( :new.created_on, localtimestamp );', ' :new.created_by := coalesce(', ' :new.created_by', -' ,sys_context( ''APEX$SESSION')) +' ,sys_context( ''APEX$SESSION'', ''APP_USER'' )', +' ')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(11011362486329675) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -''', ''APP_USER'' )', -' ,sys_context( ''USERENV'', ''PROXY_USER'' )', +' ,sys_context( ''USERENV'', ''PROXY_USER'' )', ' ,sys_context( ''USERENV'', ''SESSION_USER'' )', ' );', ' elsif updating then', @@ -3563,12 +3563,12 @@ wwv_flow_imp_shared.append_to_install_script( '', ' end download_file;', '--------------------------------------------------------------------------------', -'---------')) +'------------------------------')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(11011362486329675) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -'-----------------------------------------------------------------------', +'--------------------------------------------------', ' procedure download_file (', ' p_file_name in varchar2', ' )', @@ -4627,12 +4627,12 @@ wwv_flow_imp_shared.append_to_install_script( ' from blog_link_groups', ' where 1 = 1', ' ) v1', -' ')) +' on ( t1.id = v1.id )')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(11011362486329675) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -' on ( t1.id = v1.id )', +'', ' when matched then', ' update set t1.display_seq = v1.new_display_seq', ' where t1.display_seq != v1.new_display_seq', @@ -5615,13 +5615,13 @@ wwv_flow_imp_shared.append_to_install_script( ' else', ' -- check HTML is valid', ' -- TO DO see item 1 from package specs', -' b')) +' begin', +' l_xml :=')) ); wwv_flow_imp_shared.append_to_install_script( p_id=>wwv_flow_imp.id(11011362486329675) ,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( -'egin', -' l_xml := xmltype.createxml(', +' xmltype.createxml(', ' apex_string.format(', ' p_message => ''%s''', ' ,p0 => p_comment', @@ -6603,12 +6603,12 @@ wwv_flow_imp_shared.append_to_install_script( ' ', ' ', ' ', -' ', +'initial-scale=1.0" />', ' ', ' <xsl:value-of select="title" />', ' ', diff --git a/APEX/blog_public_pages/application/deployment/install/upgrade_postupgrade.sql b/APEX/blog_public_pages/application/deployment/install/upgrade_postupgrade.sql index b71c4998..9a5e813c 100644 --- a/APEX/blog_public_pages/application/deployment/install/upgrade_postupgrade.sql +++ b/APEX/blog_public_pages/application/deployment/install/upgrade_postupgrade.sql @@ -23,7 +23,7 @@ wwv_flow_imp_shared.create_install_script( '-- Update version info', '--------------------------------------------------------', 'update blog_settings', -' set attribute_value = ''Release 24.1.0.20240711''', +' set attribute_value = ''Release 24.1.0.20240714''', 'where 1 = 1', ' and attribute_name = ''G_APP_VERSION''', ';', diff --git a/APEX/blog_public_pages/application/pages/page_00000.sql b/APEX/blog_public_pages/application/pages/page_00000.sql index 834613df..f717cad8 100644 --- a/APEX/blog_public_pages/application/pages/page_00000.sql +++ b/APEX/blog_public_pages/application/pages/page_00000.sql @@ -215,7 +215,7 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(39994380321374338) ,p_name=>'P0_PAGE_URL' -,p_item_sequence=>60 +,p_item_sequence=>40 ,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' @@ -227,7 +227,7 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(39994434923374339) ,p_name=>'P0_BLOG_SEARCH_ROWS' -,p_item_sequence=>80 +,p_item_sequence=>30 ,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'U' @@ -252,7 +252,7 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(47287179638121342) ,p_name=>'P0_BLOG_POST_DATE_FORMAT' -,p_item_sequence=>70 +,p_item_sequence=>20 ,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'U' diff --git a/APEX/blog_public_pages/application/pages/page_00001.sql b/APEX/blog_public_pages/application/pages/page_00001.sql index 421be673..b0951c37 100644 --- a/APEX/blog_public_pages/application/pages/page_00001.sql +++ b/APEX/blog_public_pages/application/pages/page_00001.sql @@ -172,7 +172,8 @@ wwv_flow_imp_page.create_report_columns( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(24468458324361504) ,p_name=>'P1_BLOG_POST_ROWS' -,p_item_sequence=>90 +,p_item_sequence=>50 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'U' ,p_protection_level=>'I' diff --git a/APEX/blog_public_pages/application/pages/page_00002.sql b/APEX/blog_public_pages/application/pages/page_00002.sql index 1fc92ca2..c16172e6 100644 --- a/APEX/blog_public_pages/application/pages/page_00002.sql +++ b/APEX/blog_public_pages/application/pages/page_00002.sql @@ -403,7 +403,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(6914099568677134) ,p_name=>'P2_POST_TITLE' -,p_item_sequence=>140 +,p_item_sequence=>110 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -414,7 +415,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(22523057039146425) ,p_name=>'P2_POST_DESC' -,p_item_sequence=>110 +,p_item_sequence=>80 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -425,7 +427,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(22523331057146428) ,p_name=>'P2_POST_CATEGORY' -,p_item_sequence=>100 +,p_item_sequence=>70 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -436,7 +439,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(22523456606146429) ,p_name=>'P2_POST_AUTHOR' -,p_item_sequence=>90 +,p_item_sequence=>60 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -447,7 +451,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(22523516109146430) ,p_name=>'P2_POST_PUBLISHED' -,p_item_sequence=>130 +,p_item_sequence=>100 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -458,7 +463,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(22523608232146431) ,p_name=>'P2_POST_MODIFIED' -,p_item_sequence=>120 +,p_item_sequence=>90 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -469,7 +475,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(24468562639361505) ,p_name=>'P2_BLOG_COMMENT_ROWS' -,p_item_sequence=>200 +,p_item_sequence=>50 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'U' ,p_protection_level=>'I' @@ -481,7 +488,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(27862178100256820) ,p_name=>'P2_NEXT_POST_ID' -,p_item_sequence=>150 +,p_item_sequence=>120 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -492,7 +500,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(27862251117256821) ,p_name=>'P2_PREV_POST_ID' -,p_item_sequence=>170 +,p_item_sequence=>140 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -503,7 +512,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(31250009146982940) ,p_name=>'P2_SUBSCRIPTION_ID' -,p_item_sequence=>190 +,p_item_sequence=>160 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'B' @@ -514,7 +524,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(31617872589094014) ,p_name=>'P2_NEXT_POST_TITLE' -,p_item_sequence=>160 +,p_item_sequence=>130 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' @@ -524,7 +535,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(31617991042094015) ,p_name=>'P2_PREV_POST_TITLE' -,p_item_sequence=>180 +,p_item_sequence=>150 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' diff --git a/APEX/blog_public_pages/application/pages/page_00006.sql b/APEX/blog_public_pages/application/pages/page_00006.sql index 0e5485a5..0bc967d4 100644 --- a/APEX/blog_public_pages/application/pages/page_00006.sql +++ b/APEX/blog_public_pages/application/pages/page_00006.sql @@ -218,7 +218,8 @@ wwv_flow_imp_page.create_report_columns( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(7082507483178439) ,p_name=>'P6_TAG_NAME' -,p_item_sequence=>90 +,p_item_sequence=>50 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_use_cache_before_default=>'NO' ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' diff --git a/APEX/blog_public_pages/application/pages/page_00014.sql b/APEX/blog_public_pages/application/pages/page_00014.sql index 93602044..2750c7c8 100644 --- a/APEX/blog_public_pages/application/pages/page_00014.sql +++ b/APEX/blog_public_pages/application/pages/page_00014.sql @@ -209,7 +209,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(31250398896982943) ,p_name=>'P14_CATEGORY_TITLE' -,p_item_sequence=>90 +,p_item_sequence=>50 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' diff --git a/APEX/blog_public_pages/application/pages/page_01001.sql b/APEX/blog_public_pages/application/pages/page_01001.sql index ca59f201..661062a5 100644 --- a/APEX/blog_public_pages/application/pages/page_01001.sql +++ b/APEX/blog_public_pages/application/pages/page_01001.sql @@ -107,14 +107,13 @@ wwv_flow_imp_page.create_page_button( p_id=>wwv_flow_imp.id(6283414650551656) ,p_button_sequence=>20 ,p_button_plug_id=>wwv_flow_imp.id(27990916738607115) -,p_button_name=>'CREATE' +,p_button_name=>'SUBMIT' ,p_button_action=>'SUBMIT' ,p_button_template_options=>'#DEFAULT#:t-Button--iconRight' ,p_button_template_id=>wwv_flow_imp.id(6855239813267414) ,p_button_is_hot=>'Y' ,p_button_image_alt=>'Submit' ,p_button_position=>'NEXT' -,p_button_alignment=>'RIGHT' ,p_icon_css_classes=>'fa-send-o' ,p_database_action=>'INSERT' ); @@ -246,8 +245,8 @@ wwv_flow_imp_page.create_page_item( wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(26381104883542604) ,p_name=>'P1001_ANSWER' -,p_item_sequence=>90 -,p_use_cache_before_default=>'NO' +,p_item_sequence=>50 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_protection_level=>'I' ,p_restricted_characters=>'US_ONLY' @@ -288,7 +287,7 @@ wwv_flow_imp_page.create_page_item( ); wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(31617298354094008) -,p_name=>'P1001_COMMENT_HTML' +,p_name=>'P1001_BODY_HTML' ,p_source_data_type=>'VARCHAR2' ,p_item_sequence=>90 ,p_item_plug_id=>wwv_flow_imp.id(147769743184406827) @@ -316,7 +315,7 @@ wwv_flow_imp_page.create_page_validation( ,p_validation_sequence=>20 ,p_validation=>wwv_flow_string.join(wwv_flow_t_varchar2( 'return blog_comm.validate_comment(', -' p_comment => :P1001_COMMENT_HTML', +' p_comment => :P1001_BODY_HTML', ');')) ,p_validation2=>'PLSQL' ,p_validation_type=>'FUNC_BODY_RETURNING_ERR_TEXT' @@ -621,7 +620,7 @@ wwv_flow_imp_shared.create_invokeapi_comp_param( ,p_ignore_output=>false ,p_display_sequence=>40 ,p_value_type=>'ITEM' -,p_value=>'P1001_COMMENT_HTML' +,p_value=>'P1001_BODY_HTML' ); wwv_flow_imp_shared.create_invokeapi_comp_param( p_id=>wwv_flow_imp.id(20471264992872827) diff --git a/APEX/blog_public_pages/application/pages/page_01002.sql b/APEX/blog_public_pages/application/pages/page_01002.sql index 9a342b70..710b546d 100644 --- a/APEX/blog_public_pages/application/pages/page_01002.sql +++ b/APEX/blog_public_pages/application/pages/page_01002.sql @@ -52,12 +52,6 @@ wwv_flow_imp_page.create_report_region( 'and v1.content_id = :REQUEST', 'order by v1.content_id')) ,p_optimizer_hint=>'APEX$USE_NO_PAGINATION' -,p_plug_caching=>'CACHE' -,p_plug_caching_max_age_in_sec=>31536000 -,p_plug_cache_when_cond_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2' -,p_plug_cache_when_condition_e1=>'DEBUG' -,p_plug_cache_when_condition_e2=>'NO' -,p_plug_cache_depends_on_items=>'REQUEST' ,p_translate_title=>'N' ,p_ajax_enabled=>'Y' ,p_lazy_loading=>false @@ -133,6 +127,7 @@ wwv_flow_imp_page.create_page_item( p_id=>wwv_flow_imp.id(41879333719408334) ,p_name=>'P1002_PAGE_TITLE' ,p_item_sequence=>90 +,p_item_plug_id=>wwv_flow_imp.id(6433141607894071) ,p_display_as=>'NATIVE_HIDDEN' ,p_is_persistent=>'N' ,p_protection_level=>'I' diff --git a/APEX/blog_public_pages/application/shared_components/globalization/messages.sql b/APEX/blog_public_pages/application/shared_components/globalization/messages.sql index 001b5da2..655d4264 100644 --- a/APEX/blog_public_pages/application/shared_components/globalization/messages.sql +++ b/APEX/blog_public_pages/application/shared_components/globalization/messages.sql @@ -15,13 +15,13 @@ wwv_flow_imp_shared.create_message( p_id=>wwv_flow_imp.id(55636351016374001) ,p_name=>'BLOG_APP_DESC' ,p_message_text=>'About Almost Everything' -,p_version_scn=>41373793344464 +,p_version_scn=>41374218034127 ); wwv_flow_imp_shared.create_message( p_id=>wwv_flow_imp.id(55636136510372843) ,p_name=>'BLOG_APP_NAME' ,p_message_text=>'My Blog' -,p_version_scn=>41373793344456 +,p_version_scn=>41374218034120 ); wwv_flow_imp_shared.create_message( p_id=>wwv_flow_imp.id(39147943567749366) diff --git a/Database/Views/BLOG_V_POSTS.sql b/Database/Views/BLOG_V_POSTS.sql index 084b2667..fa38aa2f 100644 --- a/Database/Views/BLOG_V_POSTS.sql +++ b/Database/Views/BLOG_V_POSTS.sql @@ -75,26 +75,26 @@ select ,( select json_object( - 'post_id' : lkp_post.post_id - ,'post_title' : lkp_post.post_title + 'post_id' : lkp_next.post_id + ,'post_title' : lkp_next.post_title ) as post - from q1 lkp_post + from q1 lkp_next where 1 = 1 - and lkp_post.published_on > q1.published_on - order by lkp_post.published_on asc + and lkp_next.published_on > q1.published_on + order by lkp_next.published_on asc fetch first 1 rows only ) as next_post -- Fetch previous post id and title ,( select json_object( - 'post_id' : lkp_post.post_id - ,'post_title' : lkp_post.post_title + 'post_id' : lkp_prev.post_id + ,'post_title' : lkp_prev.post_title ) as post - from q1 lkp_post + from q1 lkp_prev where 1 = 1 - and lkp_post.published_on < q1.published_on - order by lkp_post.published_on desc + and lkp_prev.published_on < q1.published_on + order by lkp_prev.published_on desc fetch first 1 rows only ) as prev_post from q1 diff --git a/Database/Views/BLOG_V_POSTS_LAST20.sql b/Database/Views/BLOG_V_POSTS_LAST20.sql index c00481d3..c54aecbe 100644 --- a/Database/Views/BLOG_V_POSTS_LAST20.sql +++ b/Database/Views/BLOG_V_POSTS_LAST20.sql @@ -3,33 +3,33 @@ -------------------------------------------------------- create or replace force view blog_v_posts_last20 as select - rownum as display_seq - ,q1.post_id as post_id - ,q1.published_on as published_on - ,q1.blogger_name as blogger_name - ,q1.post_title as post_title - ,q1.post_desc as post_desc - ,q1.category_title as category_title - ,q1.post_url as post_url - ,q1.body_html as body_html - ,q1.absolute_url as absolute_url - ,apex_string.format( + rownum as display_seq +, q1.post_id as post_id +, q1.published_on as published_on +, q1.blogger_name as blogger_name +, q1.post_title as post_title +, q1.post_desc as post_desc +, q1.category_title as category_title +, q1.post_url as post_url +, q1.body_html as body_html +, q1.absolute_url as absolute_url +, apex_string.format( p_message => 'data-item-id="%s"' ,p0 => q1.post_id ) as list_attr from ( select --+ first_rows(20) - v1.post_id - ,v1.published_on - ,v1.blogger_name - ,v1.post_title - ,v1.post_desc - ,v1.category_title - ,v1.post_url - ,v1.body_html - ,blog_url.get_post( + v1.post_id + , v1.published_on + , v1.blogger_name + , v1.post_title + , v1.post_desc + , v1.category_title + , v1.post_url + , v1.body_html + , blog_url.get_post( p_post_id => v1.post_id - ,p_canonical => 'YES' + , p_canonical => 'YES' ) as absolute_url from blog_v_posts v1 order by v1.published_on desc diff --git a/VERSION.txt b/VERSION.txt index 25cf146c..9ab0fe0e 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -Release 24.1.0.20240711 +Release 24.1.0.20240714