This is an automated email from the ASF dual-hosted git repository.

yasithdev pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airavata-portals.git


The following commit(s) were added to refs/heads/main by this push:
     new 5b92f9286 fix(api): export Parser/ParserInput/ParserOutput from the 
models namespace (#225)
5b92f9286 is described below

commit 5b92f9286fabe5777e0e13af8730facd69913388
Author: Yasith Jayawardana <[email protected]>
AuthorDate: Sun Jun 14 00:25:57 2026 -0400

    fix(api): export Parser/ParserInput/ParserOutput from the models namespace 
(#225)
    
    The Parser models were used internally (service_config modelClass) but never
    exported from the public `models` namespace, so `models.Parser` was 
undefined.
    ParserEditor referenced it only as a prop `type` (silently degrading to
    undefined), masking the gap; constructing `new models.Parser()` for the 
create
    page surfaced it as "models.Parser is not a constructor". Export all three
    parser models alongside the others.
---
 .../django_airavata/apps/api/static/django_airavata_api/js/index.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/airavata-django-portal/django_airavata/apps/api/static/django_airavata_api/js/index.js
 
b/airavata-django-portal/django_airavata/apps/api/static/django_airavata_api/js/index.js
index 3d62ba6fc..4b686b330 100644
--- 
a/airavata-django-portal/django_airavata/apps/api/static/django_airavata_api/js/index.js
+++ 
b/airavata-django-portal/django_airavata/apps/api/static/django_airavata_api/js/index.js
@@ -37,6 +37,9 @@ import Notification from "./models/Notification";
 import NotificationPriority from "./models/NotificationPriority";
 import OutputDataObjectType from "./models/OutputDataObjectType";
 import ParallelismType from "./models/ParallelismType";
+import Parser from "./models/Parser";
+import ParserInput from "./models/ParserInput";
+import ParserOutput from "./models/ParserOutput";
 import Project from "./models/Project";
 import ResourcePermissionType from "./models/ResourcePermissionType";
 import SetEnvPaths from "./models/SetEnvPaths";
@@ -104,6 +107,9 @@ const models = {
   NotificationPriority,
   OutputDataObjectType,
   ParallelismType,
+  Parser,
+  ParserInput,
+  ParserOutput,
   Project,
   ResourcePermissionType,
   ResourceType,

Reply via email to