Skip to content

remove legacy api support - #1629

Merged
technoweenie merged 7 commits into
masterfrom
remove-legacy-api-support
Nov 18, 2016
Merged

technoweenie merged 7 commits into
masterfrom
remove-legacy-api-support

Conversation

@technoweenie

@technoweenie technoweenie commented Nov 8, 2016 •

Copy link
Copy Markdown
Contributor

This removes legacy api support. The only wrinkle here is that the api upload and download tests had to be rewritten to exercise the batch api and not the legacy API.

  • remove legacy api docs

@ttaylorr ttaylorr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@technoweenie technoweenie added this to the v2.0 milestone Nov 9, 2016
@technoweenie
technoweenie merged commit 108aa02 into master Nov 18, 2016
@technoweenie
technoweenie deleted the remove-legacy-api-support branch November 18, 2016 14:36
chrisd8088 added a commit that referenced this pull request Oct 22, 2026
During the early development of the Git LFS Batch API, we introduced
a feature to our "lfstest-gitserver" test utility which allowed us to
disable its support for the Batch API so we could check how the
Git LFS client behaved under those conditions.  When the test server
receives a Batch API request whose URL path contains the repository
name "batchunsupported", the server always responds with a 404
Not Found status code, unless the request included an X-Check-Object
header with the value "1".

The Git LFS client never sends an X-Check-Object header, but the
refute_server_object() helper function in our shell test library makes
use of this header to ensure that its HTTP request to the test server
is fully processed.  The helper function would otherwise not be able
to confirm that the client failed to upload an object to the test
server when trying to do so for a repository named "batchunsupported".

At present, this feature of the "lfstest-gitserver" utility and the
related support for it in the refute_server_object() helper function
are unused, ever since commit 7e624dad96116fc66ebfed1f0a25e04cc684576
of PR #1629 when we removed our only shell test that created a
repository with the special "batchunsupported" name.

However, in a subsequent commit we intend to introduce a new test which
again makes use of this feature of our test server utility.  As well,
we expect to add several new shell tests that will require a similar
feature in the test server to disable its support for the Git LFS
Locking API.

We therefore now update our "lfstest-gitserver" test utility so that
when it receives a Locking API request with the special repository name
"locksunsupported" in the URL path, the utility immediately sends a
404 Not Found status code, unless the request has an X-Check-Lock
header with the value "1".

We then add an X-Check-Lock header to the HTTP request made by the
refute_server_lock() helper function in our shell test library, which
ensures the function will be able to confirm that the Git LFS client
was unable to acquire a lock from the test server when trying to do
so for a repository named "locksunsupported".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants