Guarantee findAllChildrenUuids results order#809
Conversation
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
…omposites to groups Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…sites' into marcellinh/fix-findAllChildrenUuids-result-order
…sub_modificationsPK Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
…sites' into marcellinh/fix-findAllChildrenUuids-result-order
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
…fix-findAllChildrenUuids-result-order
| @NativeQuery("WITH RECURSIVE ModificationHierarchy (modification_id, path) AS ( " + | ||
| " SELECT cast(:compositeUuid AS VARCHAR), ARRAY[0] " + | ||
| " UNION ALL " + | ||
| " SELECT cast(sm.modification_id AS VARCHAR), mh.path || (m.modifications_order + 1) " + |
There was a problem hiding this comment.
I don't think the "+ 1" is useful :
| " SELECT cast(sm.modification_id AS VARCHAR), mh.path || (m.modifications_order + 1) " + | |
| " SELECT cast(sm.modification_id AS VARCHAR), mh.path || m.modifications_order " + |
| " INNER JOIN ModificationHierarchy mh ON m.id = mh.id " + | ||
| ") " + | ||
| "SELECT distinct cast(m.id AS VARCHAR) FROM ModificationHierarchy m ") | ||
| @NativeQuery("WITH RECURSIVE ModificationHierarchy (modification_id, path) AS ( " + |
There was a problem hiding this comment.
I would add a small comment like :
// returns the composite uuid and its children and subchildren's uuids
because the request is a bit complicated and it is not very logical that compositeUuid is returned given the function name (findAllChildrenUuids).
…sites' into marcellinh/fix-findAllChildrenUuids-result-order
|



PR Summary