Skip to content

Update ROADMAP.md - #1438

Merged
technoweenie merged 9 commits into
masterfrom
triaged-roadmap-updates
Aug 19, 2016
Merged

technoweenie merged 9 commits into
masterfrom
triaged-roadmap-updates

Conversation

@technoweenie

Copy link
Copy Markdown
Contributor

Triaging old issues, and adding to the roadmap...

@ttaylorr

Copy link
Copy Markdown
Contributor

🤘 Want to keep this open until we go through all of the open issues? Should only be a few days.

@ttaylorr ttaylorr mentioned this pull request Aug 12, 2016
@technoweenie

Copy link
Copy Markdown
Contributor Author

I'm not sure I'm ready to commit to the LFS migration tool on the roadmap like that. Perhaps under "Possible Features" instead?

@ttaylorr

Copy link
Copy Markdown
Contributor

I agree, not sure why I put it there in the first place. Moved it down to the "Possible Features" section!

Comment thread ROADMAP.md
| | Automatic upgrades | [#531](https://github.com/gihtub/git-lfs/issues/531) |
| | Investigate `git add` hash caching | [#574](https://github.com/github/git-lfs/issues/574) |
| | `git lfs archive` command | [#1322](https://github.com/github/git-lfs/issues/1322) |
| | Support 507 http responses | [#1327](https://github.com/github/git-lfs/issues/1327) |

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.

I have a couple of questions about HTTP 507 support.

  • Does adding support involve anything more than updating the list of optional status codes to mention it? If not, I can send a PR to make that update.
  • Is it going to mean a new API version?

Reason I ask about the API version is that I'd like to include support for this in JGit (which currently implements Git LFS v1 Batch API) but if it's in a new API version (likely also including other stuff) it might not be as easy.

@technoweenie

Copy link
Copy Markdown
Contributor Author

Does adding support involve anything more than updating the list of optional status codes to mention it? If not, I can send a PR to make that update.

Nope, just looking for a more specific error message. If you think 507 or any other status should do something special, we can talk about that too.

Is it going to mean a new API version?

Since it's an addition, I'm not considering it a new API version. An old client that only understands v1 API stuff should always be able to talk to any v1.x API.

Also, I'm not happy with the API docs specifying v1, v1.2, and v1.3 API versions. I want to rewrite it as a single document, with specific properties calling out what Git LFS client supports them. If you're adding this to JGit, then I'll probably ping you for some feedback :)

@dpursehouse

Copy link
Copy Markdown
Contributor

just looking for a more specific error message

You mean like in this block?

defaultErrors = map[int]string{
        400: "Client error: %s",
        401: "Authorization error: %s\nCheck that you have proper access to the repository",
        403: "Authorization error: %s\nCheck that you have proper access to the repository",
        404: "Repository or object not found: %s\nCheck that it exists and that you have proper access to it",
         500: "Server error: %s",
}

There aren't any special messages there for example for 422 or the other optional status codes (406, 429, etc). Also as far as I have tested, the client will use the message that was given by the server anyway, so for example if the server returns 404 with a body:

{"message" : "repository foo not found"}

then it will display that message, rather than the message in the defaultErrors block.

If you think 507 or any other status should do something special, we can talk about that too.

Right now I don't need it to do anything special. Displaying the error message is enough, like it does for the others.

@technoweenie

Copy link
Copy Markdown
Contributor Author

Yes, that block. I realize it's not exactly a major change. It's also pretty far down the backlog :)

@technoweenie
technoweenie merged commit ebbe14f into master Aug 19, 2016
@technoweenie
technoweenie deleted the triaged-roadmap-updates branch August 19, 2016 16:38
dpursehouse added a commit to dpursehouse/git-lfs that referenced this pull request Aug 20, 2016
Mention that the server implementation may optionally return status
code 507.

This does not add any specific handling of 507 in either the client or
the test server implementation. If a server returns this status code,
it will be handled by the client as a generic "Server Error".

See git-lfs#1327 and git-lfs#1438.

Change-Id: I2de691bb57b3ef44288b91b79226695f768ec44e
Signed-off-by: David Pursehouse <[email protected]>
ttaylorr pushed a commit that referenced this pull request Aug 22, 2016
…1473)

* Add HTTP 507 (Insufficient Storage) to the list of optional statuses

Mention that the server implementation may optionally return status
code 507.

This does not add any specific handling of 507 in either the client or
the test server implementation. If a server returns this status code,
it will be handled by the client as a generic "Server Error".

See #1327 and #1438.

Change-Id: I2de691bb57b3ef44288b91b79226695f768ec44e
Signed-off-by: David Pursehouse <[email protected]>

* Add default error messages for 427, 507 and 509 responses

Change-Id: Ia42731e35f2aa7b918de3d0412205700df968d95
Signed-off-by: David Pursehouse <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants