Page MenuHomeSoftware Heritage

Add alias type to the branch target
ClosedPublic

Authored by jayeshv on Aug 24 2022, 1:15 PM.

Details

Summary

Return a branch object when the branch target is an alias type

Related to T4309

Diff Detail

Repository
rDGQL GraphQL API
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D8304 (id=29979)

Rebasing onto 6fb1913ff9...

Current branch diff-target is up to date.
Changes applied before test
commit 4aefb1aab9c7a4d08692a2944dcf8be5ad9102a6
Author: Jayesh Velayudhan <jayesh@softwareheritage.org>
Date:   Tue Aug 23 12:00:59 2022 +0200

    Add alias type to the branch target
    
    Return a branch object when the branch target is an alias type
    
    Related to T4309

See https://jenkins.softwareheritage.org/job/DGQL/job/tests-on-diff/120/ for more details.

vlorentz retitled this revision from WIP Add alias type to the branch target to [WIP] Add alias type to the branch target.Aug 24 2022, 1:28 PM

Build is green

Patch application report for D8304 (id=29982)

Rebasing onto 6fb1913ff9...

Current branch diff-target is up to date.
Changes applied before test
commit 083b3c2fae4852499c25c27fdac3db849e861ead
Author: Jayesh Velayudhan <jayesh@softwareheritage.org>
Date:   Tue Aug 23 12:00:59 2022 +0200

    Add alias type to the branch target
    
    Return a branch object when the branch target is an alias type
    
    Related to T4309

See https://jenkins.softwareheritage.org/job/DGQL/job/tests-on-diff/121/ for more details.

jayeshv retitled this revision from [WIP] Add alias type to the branch target to Add alias type to the branch target.Aug 24 2022, 1:53 PM
jayeshv edited the summary of this revision. (Show Details)
ardumont added a subscriber: ardumont.

lgtm

couple of non-blocking suggestions inline

swh/graphql/resolvers/snapshot_branch.py
36

I believe we usually raise a NotImplementedError instead.

46

why do you comment it?

49

if you uncomment line 48, this comment is no longer needed ;)

53
swh/graphql/tests/functional/test_branch_connection.py
62–63
This revision is now accepted and ready to land.Aug 25 2022, 10:05 AM
jayeshv added inline comments.
swh/graphql/resolvers/snapshot_branch.py
46

This is because of a circular import. I have to restructure this a bit to avoid that. Will do that as part of another re-factoring.

swh/graphql/tests/functional/test_branch_connection.py
62–63

Renamed the function and moved the functions aroud.

Build is green

Patch application report for D8304 (id=30014)

Rebasing onto 5cf1ac26d9...

Current branch diff-target is up to date.
Changes applied before test
commit 67b52a28d194ff39d33a4e6a687a9c439a0e29b3
Author: Jayesh Velayudhan <jayesh@softwareheritage.org>
Date:   Tue Aug 23 12:00:59 2022 +0200

    Add alias type to the branch target
    
    Return a branch object when the branch target is an alias type
    
    Related to T4309

See https://jenkins.softwareheritage.org/job/DGQL/job/tests-on-diff/126/ for more details.

jayeshv marked an inline comment as done.

docstring correction

Build is green

Patch application report for D8304 (id=30015)

Rebasing onto 5cf1ac26d9...

Current branch diff-target is up to date.
Changes applied before test
commit 527bf88bdb24b60a866a3ab1a3a71fcf2342e650
Author: Jayesh Velayudhan <jayesh@softwareheritage.org>
Date:   Tue Aug 23 12:00:59 2022 +0200

    Add alias type to the branch target
    
    Return a branch object when the branch target is an alias type
    
    Related to T4309

See https://jenkins.softwareheritage.org/job/DGQL/job/tests-on-diff/127/ for more details.

This revision was automatically updated to reflect the committed changes.