Skip to content

Conversation

stain
Copy link
Member

@stain stain commented Sep 15, 2017

Fixes #176 by adding a new ?part= to the permalinks

(It does not change the current %23 escaping in the UI, but that could
also be considered. The UI parts are fixed to enable the permalinks also
for packed workflows)

Support ?format=json in redirects.
Fixes #166.

Support ?format=raw for any git file
Fixes #167.

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@stain
Copy link
Member Author

stain commented Sep 15, 2017

There might also be some UI tweaks in there.. sorry!

Also smaller permalink (should not need <code> anymore)
.. which shows representations as text/uri-list
and permalinks per format
Added getIdentifier() that gives the old #foo variant - useful for
matching with the RDF output and as graph name in the RDF

In preparation for #176 to support permalinks for packed workflows.

getPermaLink(Format) uses enum instead of strings (which might not match
a known format)
In preparation for #167 so we can build raw URIs (Really the datamodel
is upside-down to support that at the moment)

Should probably return a Stream rather than a List for effiency (later
we'll just pick the first one that has the commit).

also.. is it possible to return the RetrievedFrom object instead of
Workflow?
This fixes #167 by looking up any matching commit ID
Fixes #176 by adding a new ?part= to the permalinks

(It does not change the current %23 escaping in the UI, but that could
also be considered. The UI parts are fixed to enable the permalinks also
for packed workflows)
.. so that ?format=json works in browsers

Fixes #166.
@stain stain changed the title Work in progress: Support packed workflows in permalinks Support packed workflows in permalinks May 22, 2018
@stain stain merged commit f89f37a into master May 24, 2018
@stain stain deleted the permalinks-packed branch May 24, 2018 16:50
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.

Support permalinks for packed workflows ?format=raw doesn't work for other files in repo ?format=json shows HTML

1 participant