Skip to content

Commit 2a7fc7f

Browse files
authored
Merge pull request #43 from oracle-samples/apex_updates
fix: 🐛 Fixed bug in Current Instance Content region on Instance Detail Page.
2 parents 9472631 + 2f0024d commit 2a7fc7f

File tree

4 files changed

+18
-53
lines changed

4 files changed

+18
-53
lines changed

apex/dashboard/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
<!-- markdownlint-disable MD024 -->
22
# IoT Explorer - Release Notes
33

4-
## December 16th, 2025
4+
## January 14th, 2026
5+
6+
### Changes
7+
8+
- Fixed bug in Current Instance Content on Instance Detail page.
9+
10+
## January 13th, 2026
511

612
### New Features
713

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:abc134e25fc41c750d858ae28898fe1da6f289b4623be90e2fae06dd537c6d56
3-
size 1394542
2+
oid sha256:e13b3f138eea5e8a77d40578ddbeacf49b71c82fb41b5cade2f570f92dda10ab
3+
size 1394423

apex/dashboard/iot_explorer.sql

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,9 +1409,6 @@ create or replace package iot_objects as
14091409
-- instance to be updated and JSON clob body
14101410
function update_instance(p_ocid varchar2, p_body clob) return clob;
14111411

1412-
-- Calls REST API to retrieve the content from an instance
1413-
function instance_get_content(p_ocid varchar2) return clob;
1414-
14151412
-- Constructs the API JSON body to create a digital twin model
14161413
function model_api_body(
14171414
p_iot_domain_ocid varchar2 default null, /*only needed on create request*/
@@ -1711,39 +1708,6 @@ create or replace package body iot_objects as
17111708
end;
17121709

17131710

1714-
-- Calls REST API to retrieve the content from an instance
1715-
function instance_get_content(p_ocid varchar2)
1716-
return clob
1717-
is
1718-
v_response dbms_cloud_types.resp;
1719-
v_return clob;
1720-
v_config json_object_t;
1721-
1722-
begin
1723-
1724-
v_config := iot_apex.iot_config; -- Load config
1725-
1726-
v_response := dbms_cloud.send_request(
1727-
credential_name => v_config.get_string('credentials'), -- Credential name from the configuration
1728-
uri => 'https://iot.'||
1729-
v_config.get_string('tenancy_region')||
1730-
'.oci.oraclecloud.com/20250531/digitalTwinInstances/'||
1731-
p_ocid||
1732-
'/content', -- URI for the IoT domain group connection API
1733-
method => 'GET' -- HTTP method (GET)
1734-
);
1735-
1736-
v_return := dbms_cloud.get_response_text(resp => v_response); --convert responce to clob
1737-
1738-
return v_return;
1739-
1740-
exception
1741-
when others then
1742-
-- Log any errors that occur during the execution of this function
1743-
return 'Error: ' || sqlerrm;
1744-
end;
1745-
1746-
17471711
-- Constructs the API JSON body to create a digital twin model
17481712
function model_api_body(
17491713
p_iot_domain_ocid varchar2 default null, /*only needed on create request*/

apex/dashboard/iot_explorer_packages.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,7 @@ null, p_action varchar2 default 'create', p_ocid varchar2 default null)`
137137
- `p_ocid` - the ocid of the object to be updated.
138138
- `p_body` - the JSON CLOB body for the instance update request.
139139
- Return Value: The response from the API as a CLOB.
140-
5. `IOT_OBJECTS.instance_get_content(p_ocid varchar2) return clob;`
141-
- Description: Calls REST API to retrieve the content from an instance.
142-
- Parameters:
143-
- `p_ocid` - the ocid of the instance to retrieve the content.
144-
- Return Value: The response from the API as a CLOB.
145-
6. `IOT_OBJECTS.model_api_body(p_iot_domain_ocid varchar2 default null,
140+
5. `IOT_OBJECTS.model_api_body(p_iot_domain_ocid varchar2 default null,
146141
p_description varchar2 default null, p_display_name varchar2, p_context
147142
varchar2, p_contents clob, p_freeform_tags clob default null, p_dtdl_id
148143
varchar2 default null, p_ocid varchar2 default null)`
@@ -157,7 +152,7 @@ varchar2 default null, p_ocid varchar2 default null)`
157152
- `p_dtdl_id` - the DTDL ID (optional).
158153
- `p_ocid` - ocid of object when updating or deleting.
159154
- Return Value: A JSON CLOB representing the model API body.
160-
7. `IOT_OBJECTS.model_cli(p_iot_domain_ocid varchar2 default null,
155+
6. `IOT_OBJECTS.model_cli(p_iot_domain_ocid varchar2 default null,
161156
p_description varchar2 default null, p_display_name varchar2, p_context
162157
varchar2, p_contents clob, p_freeform_tags clob default null, p_dtdl_id
163158
varchar2 default null, p_action varchar2 default 'create', p_ocid varchar2
@@ -174,18 +169,18 @@ default null)`
174169
- `p_action` - operation preformed 'create' or 'update'.
175170
- `p_ocid` - ocid of object when updating or deleting.
176171
- Return Value: A CLOB representing the CLI command.
177-
8. `IOT_OBJECTS.create_model(p_body clob)`
172+
7. `IOT_OBJECTS.create_model(p_body clob)`
178173
- Description: Calls the REST API to create a digital twin model.
179174
- Parameters:
180175
- `p_body` - the JSON CLOB body for the model creation request.
181176
- Return Value: The response from the API as a CLOB.
182-
9. `IOT_OBJECTS.update_model(p_ocid varchar2, p_body clob) return clob;`
177+
8. `IOT_OBJECTS.update_model(p_ocid varchar2, p_body clob) return clob;`
183178
- Description: Calls the REST API to update a digital twin model.
184179
- Parameters:
185180
- `p_ocid` - the ocid of the object to be updated.
186181
- `p_body` - the JSON CLOB body for the model update request.
187182
- Return Value: The response from the API as a CLOB.
188-
10. `IOT_OBJECTS.adapter_api_body(p_iot_domain_ocid varchar2 default null,
183+
9. `IOT_OBJECTS.adapter_api_body(p_iot_domain_ocid varchar2 default null,
189184
p_dt_model_ocid varchar2, p_display_name varchar2, p_description varchar2
190185
default null`
191186
- Description: Constructs a JSON API payload for digital twin adapter
@@ -196,7 +191,7 @@ default null`
196191
- `p_display_name` - the display name.
197192
- `p_description` - the description (optional).
198193
- Return Value: A JSON CLOB representing the adapter API body.
199-
11. `IOT_OBJECTS.adapter_cli(p_iot_domain_ocid varchar2 default null,
194+
10. `IOT_OBJECTS.adapter_cli(p_iot_domain_ocid varchar2 default null,
200195
p_dt_model_ocid varchar2, p_display_name varchar2, p_description varchar2
201196
default null, p_action varchar2 default 'create', p_ocid varchar2 default
202197
null)`
@@ -209,18 +204,18 @@ null)`
209204
- `p_action` - operation preformed 'create', 'update', or 'delete'.
210205
- `p_ocid` - ocid of object when updating or deleting.
211206
- Return Value: A CLOB representing the CLI command.
212-
12. `IOT_OBJECTS.create_adapter(p_body clob)`
207+
11. `IOT_OBJECTS.create_adapter(p_body clob)`
213208
- Description: Calls the REST API to create a digital twin adapter.
214209
- Parameters:
215210
- `p_body` - the JSON CLOB body for the adapter creation request.
216211
- Return Value: The response from the API as a CLOB.
217-
13. `IOT_OBJECTS.update_adapter(p_ocid varchar2, p_body clob) return clob;`
212+
12. `IOT_OBJECTS.update_adapter(p_ocid varchar2, p_body clob) return clob;`
218213
- Description: Calls the REST API to update a digital twin adapter.
219214
- Parameters:
220215
- `p_ocid` - the ocid of the object to be updated.
221216
- `p_body` - the JSON CLOB body for the adapter update request.
222217
- Return Value: The response from the API as a CLOB.
223-
14. `IOT_OBJECTS.delete_object(p_object_ocid varchar2)`
218+
13. `IOT_OBJECTS.delete_object(p_object_ocid varchar2)`
224219
- Description: Calls the REST API to delete a digital twin object.
225220
- Parameters:
226221
- `p_object_ocid` - the OCID of the object to be deleted.

0 commit comments

Comments
 (0)