Skip to content

Commit

Permalink
[DMS-26] Generate dependencies (#193)
Browse files Browse the repository at this point in the history
* Generate dependencies at runtime based on apischema.json

* cleanup

* Use real endpoint

* Tests should pass

* Cleanup

* Cleanup

* clean up tests

* Remove trace asserts to see if branch coverage improves

* Trying this to determine a baseline

* Add a little more code

* Add a little more code

* Remove code branch

* Try this

* More simplification

* Use ResourceSchema object

* Null check

* Light refactor

* Add helper extension to JsonNode

* Extract Dependency calculation to dedicated class

* Add a couple assertions

* Add DependencyCaclculatorTests

* Use plural resource name, more tests

* Test algorithm

* Simplify

* Remove comment

* Fix misnamed variables
  • Loading branch information
simpat-adam authored Jul 23, 2024
1 parent d186294 commit 867ec20
Show file tree
Hide file tree
Showing 8 changed files with 618 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// See the LICENSE and NOTICES files in the project root for more information.
using EdFi.DataManagementService.Core.External.Model;
using EdFi.DataManagementService.Core.External.Frontend;
using System.Text.Json.Nodes;

namespace EdFi.DataManagementService.Core.External.Interface;

Expand Down Expand Up @@ -40,4 +41,10 @@ public interface IApiService
/// DMS entry point for data model information from ApiSchema.json
/// </summary>
public IList<IDataModelInfo> GetDataModelInfo();

/// <summary>
/// Get the ordered list of dependencies
/// </summary>
/// <returns></returns>
public JsonArray GetDependencies();
}
Loading

0 comments on commit 867ec20

Please sign in to comment.