Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Ensures that the Universal Viewer is not rendered for invalid IIIF resources #1458

Merged
merged 2 commits into from
Aug 18, 2017

Conversation

jrgriffiniii
Copy link
Contributor

Resolves #1429 by ensuring that the Universal Viewer is not rendered for resources where the IIIF Manifest is empty or invalid

@jrgriffiniii jrgriffiniii force-pushed the issues-1429-jrgriffiniii-manifest-no-sequences branch from 649ca69 to c9e348d Compare August 16, 2017 22:40
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 99.671% when pulling c9e348d on issues-1429-jrgriffiniii-manifest-no-sequences into 5368192 on master.

@jrgriffiniii jrgriffiniii force-pushed the issues-1429-jrgriffiniii-manifest-no-sequences branch 2 times, most recently from 54414ce to f55c7c4 Compare August 17, 2017 18:17
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 99.692% when pulling f55c7c4 on issues-1429-jrgriffiniii-manifest-no-sequences into 5368192 on master.

@jrgriffiniii jrgriffiniii force-pushed the issues-1429-jrgriffiniii-manifest-no-sequences branch from f55c7c4 to f9f5cbd Compare August 17, 2017 18:49
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 99.692% when pulling f9f5cbd on issues-1429-jrgriffiniii-manifest-no-sequences into 5368192 on master.

@jrgriffiniii jrgriffiniii changed the title [WIP] Ensures that the Universal Viewer is not rendered for invalid IIIF resources Ensures that the Universal Viewer is not rendered for invalid IIIF resources Aug 17, 2017
get :manifest, params: { id: coll.id, format: :json }

response_json = JSON.parse(response.body)
expect(response_json).to be_empty
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be good to also check the response status code.

get :manifest, params: { id: "test2", format: :json }

response_json = JSON.parse(response.body)
expect(response_json).to be_empty
Copy link
Member

Choose a reason for hiding this comment

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

Same as above: we should check the status code, too.

@escowles
Copy link
Member

This looks good — the only changes I'd like to see are making sure we get the response status codes we expect, since they're important for triggering client error handling behavior.

@jrgriffiniii jrgriffiniii changed the title Ensures that the Universal Viewer is not rendered for invalid IIIF resources [WIP] Ensures that the Universal Viewer is not rendered for invalid IIIF resources Aug 17, 2017
@jrgriffiniii jrgriffiniii force-pushed the issues-1429-jrgriffiniii-manifest-no-sequences branch from 39bd78a to a3907f6 Compare August 18, 2017 16:51
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 99.387% when pulling a3907f6 on issues-1429-jrgriffiniii-manifest-no-sequences into 5368192 on master.

@jrgriffiniii jrgriffiniii force-pushed the issues-1429-jrgriffiniii-manifest-no-sequences branch from a3907f6 to 38d5a74 Compare August 18, 2017 17:18
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 99.387% when pulling 38d5a74 on issues-1429-jrgriffiniii-manifest-no-sequences into 5368192 on master.

…for resources where the IIIF Manifest is empty or invalid

Addressing styling issues

Structuring a test suite for the Hyrax::Manifest Module

Extending the PolymorphicManifestBuilder test suites for manifest error handling; Resolving issues relating to the Rails routes for the Hyrax::Manifest test suite

Ensuring that cases where the IIIF Manifest is invalid or empty no longer triggers an alert, but logs a warning
…fest methods for the CollectionsController

Resolving styling issues

Ensuring that the test suites for CollectionsController, EphemeraFoldersController, Manifest

Increasing the test coverage by implementing a test suite for the CollectionManifest Module

Tracking the modifications CollectionsManifest and the test suite Manifest
@jrgriffiniii jrgriffiniii force-pushed the issues-1429-jrgriffiniii-manifest-no-sequences branch from 38d5a74 to 316276d Compare August 18, 2017 18:24
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 99.43% when pulling 316276d on issues-1429-jrgriffiniii-manifest-no-sequences into b2028b3 on master.

@jrgriffiniii jrgriffiniii changed the title [WIP] Ensures that the Universal Viewer is not rendered for invalid IIIF resources Ensures that the Universal Viewer is not rendered for invalid IIIF resources Aug 18, 2017
@escowles escowles merged commit bae2557 into master Aug 18, 2017
@escowles escowles deleted the issues-1429-jrgriffiniii-manifest-no-sequences branch August 18, 2017 21:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants