Commit | Line | Data |
3171c289 |
1 | I think this looks good refactoring wise but there's no comment or |
2 | documentation as to what the source_tree method is for or why you'd |
3 | actually want to call it - add that and I think it's probably good. |
6f10097a |
4 | |
5 | There is an actual method called r_sources() on schema. Please call it |
6 | something sensible or privatize. |
7 | $args is taken as a hashref only - it is customary for DBIC methods to |
8 | take both a hashref and a hashref-as-list |
9 | |
10 | The returned structure needs a massive rework, instead of the nondescript '1', |
11 | you need to return something more elaborate. Consider: |
12 | - One might want to know which dependencies are views and which are tables |
13 | - One might want to know the types of relationships (optional/hard dep) |
14 | - One might want to know which dependencies are direct and which are deps of |
15 | deps (this last bit was actually present in the code that was ripped out, |
16 | in a sense what we have now is loss of functionality) |
17 | |
18 | |