Details
-
Type:
New Feature
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 9.1.10 Major Release
-
Labels:None
-
Story Points:5
-
Epic Link:
-
Sprint:Summer 3 2022 June 21, Summer 4 2022 July 4, Summer 5 2022 July 18, Summer 6 2022 Aug 1, Fall 1 2022 Aug 15
Description
Situation: We need an endpoint in IGB that can accept a Quickload URL and name and will then add a new data source without input from the user.
Task: Implement the endpoint in IGB.
See IGBF-2846 for notes related to this ticket.
As mentioned in the linked issue, opening the "Preferences" window at the Data sources level worked when I created a custom endpoint for it. However, http request failed repeatedly yesterday. Turns out it was just a caching issue and after deleting .idea folder in the Intellij IGB project folder along with the IGB folder did the trick and the http request went through the right breakpoints during debugging and returned the correct response.
The idea to open the "Preferences" window or the "Add New Data Source" window was abandoned because it could only confuse the user. Instead the data source should be added directly to the "DataProviderManager" instance (where new data sources are added to). To do so the instances of the "DataProviderFactoryManager" and "DataProviderManager" is required. New instances of the classes may work as the setters of these classes are not used in the AddDataProvider class (extends JFrame) where the logic to add a new data source is from. However, so far this is has not worked.