Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data seeds improvements #5056

Closed
wants to merge 384 commits into from
Closed

Data seeds improvements #5056

wants to merge 384 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 8, 2021

  1. Update lib/hyrax/configuration.rb

    Co-authored-by: Chris Colvard <[email protected]>
    elrayle and cjcolvar authored Oct 8, 2021
    Configuration menu
    Copy the full SHA
    450b659 View commit details
    Browse the repository at this point in the history
  2. Update lib/hyrax/configuration.rb

    Co-authored-by: Chris Colvard <[email protected]>
    elrayle and cjcolvar authored Oct 8, 2021
    Configuration menu
    Copy the full SHA
    5cc2e8f View commit details
    Browse the repository at this point in the history
  3. Merge pull request #5176 from samvera/col_form

    add basic required metadata to the pcdm collection form
    elrayle authored Oct 8, 2021
    Configuration menu
    Copy the full SHA
    2326e63 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #5177 from samvera/af_form

    Add administrative set form with minimal metadata
    elrayle authored Oct 8, 2021
    Configuration menu
    Copy the full SHA
    3682bb9 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5175 from samvera/as_model

    add config for setting admin set model
    elrayle authored Oct 8, 2021
    Configuration menu
    Copy the full SHA
    e3dba86 View commit details
    Browse the repository at this point in the history
  6. use both ::Collection and any configured class for filter queries

    existing collections indexed as `'Collection'` and those created with `Wings`
    should still turn up in queries.
    
    probably we should be using the indexed `generic_type` for these filters instead
    of a list of models, but this keeps compatibility until we can work that out.
    tamsin johnson authored and tamsin johnson committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    874c81b View commit details
    Browse the repository at this point in the history
  7. include core metadata in administrative sets

    updates metadata in the model and indexer
    elrayle authored and tamsin johnson committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    f7782bc View commit details
    Browse the repository at this point in the history
  8. remove duplicate tests for administrative_set_indexer

    For some reason there were two spec files testing `Hyrax::AdministrativeSetIndexer`.  One in `hyrax/administrative_set_indexer_spec.rb`.  The other in `hyrax/valkyrie_administrative_set_indexer_spec.rb`.  The tests are the same in both spec files.  I removed the one starting with `valkyrie` because the other one follows the normal naming conventions.
    elrayle authored and tamsin johnson committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    1259ea0 View commit details
    Browse the repository at this point in the history
  9. adjust stubs in WorkShowPresenter specs

    we want these stubs to apply for whatever collection class is in use in the test
    suite.
    tamsin johnson authored and tamsin johnson committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    01fe01c View commit details
    Browse the repository at this point in the history
  10. squash

    tamsin johnson authored and tamsin johnson committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    dbad658 View commit details
    Browse the repository at this point in the history
  11. squash

    tamsin johnson authored and tamsin johnson committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    6237fd6 View commit details
    Browse the repository at this point in the history
  12. fix out-of-path reference to _view_type_group.html.erb partial

    this partial has apparently never resolved properly; it's test was stubbed.
    
    this fixes the reference and forces the template to resolve to pass the view spec
    tamsin johnson authored and tamsin johnson committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    2da50a2 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2021

  1. switch call to deprecated presenter method with a helper call

    this presenter method was previously deprecated in favor of a helper. it looks
    like this view got missed in that update.
    tamsin johnson authored and dunn committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    a5ad618 View commit details
    Browse the repository at this point in the history
  2. change ManagedCollectionsServiceSpec to use valkyrie models in setup

    setup these tests with valkyrie.
    tamsin johnson authored and tamsin johnson committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    f393838 View commit details
    Browse the repository at this point in the history
  3. update WorkSearchBuilder specs for Valkyrie

    update these expectations to be sensitive to current model class filter
    considerations. use the Valkyrie test class `Monograph` as the dummy work class,
    since `GenericWork` is likely to be removed from the test app at some point.
    tamsin johnson authored and tamsin johnson committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    2e2729f View commit details
    Browse the repository at this point in the history
  4. load collection from CanCan tooling in CollectionMembersController

    tamsin johnson authored and tamsin johnson committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    8f5d634 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2021

  1. don't look up destination collection for 'move' action to access id

    this is a case where we are doing a whole collection lookup just to then pass
    the id to the collaborator service. skip this and save the DB round trip.
    tamsin johnson authored and tamsin johnson committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    662e311 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2021

  1. don't hardcode collection class expectations in some specs

    `Dashboard::CollectionsController` tests still have quite a few hard-coded class
    expectations. this loosens a few of them up.
    tamsin johnson authored and mcritchlow committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    f6bb8af View commit details
    Browse the repository at this point in the history
  2. add a publishable event for collection membership changes

    we want to be able to take actions (e.g. to log, or send timeseries data), when
    a collection changes its membership. add a hook for this.
    tamsin johnson authored and mcritchlow committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    9986429 View commit details
    Browse the repository at this point in the history
  3. apply general curation_concerns permissions to configured collection

    when using a collection class other than `::Collection`, apply Hyrax's
    curation_concern permissions. (e.g. this allows `#create`).
    tamsin johnson authored and mcritchlow committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    57cc27f View commit details
    Browse the repository at this point in the history
  4. allow ResourceForms #for` factory method to find Collection forms

    map `Hyrax::PcdmCollection` to `Hyrax::Forms::PcdmCollectionForm` for the
    factory method's purposes.
    tamsin johnson authored and mcritchlow committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    27e5fa6 View commit details
    Browse the repository at this point in the history
  5. only skip loading resource for ActiveFedora in CollectionsController

    `Dashboard::CollectionsController#create` has some behavior to avoid CanCan's
    load_resource hook. the reasons for avoiding this are a bit opaque, but we
    definitely don't want to carry this forward. disabling it immediately does
    actually fail some tests, so instead limit the skip to cases where an
    ActiveFedora collection class is in use.
    tamsin johnson authored and mcritchlow committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    02887aa View commit details
    Browse the repository at this point in the history
  6. don't override a ChangeSet's existing data with a generic default

    if a ChangeSet has a `#collection_type_gid` value, never override it with the
    default.
    tamsin johnson authored and tamsin johnson committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    50213ff View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. only set reindex-extent on AF collections

    Valkyrie models don't index automatically on save, so setting a "re-index
    extent" on the model doesn't make much sense.
    
    it's honestly not clear to me that this line does anything at all. the
    collection doesn't appear to be saved (or indexed) as part of this controller's
    logic.
    
    whatever the case, it turns out that just not failing on this assignment makes
    this controller's unit tests pass. we'll definitely want to look closer at
    it, since the controller is doing `load_and_authorize_resource` on the whole
    collection just to then pass through the id to a collaborator---do we need to
    load the object, or just authorize based on id and move on?
    tamsin johnson authored and tamsin johnson committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    5866770 View commit details
    Browse the repository at this point in the history
  2. skip CollectionsMembershipActor specs if using Valkyrie collections

    this actor won't be updated for compatibility with Valkyrie-based collection
    models. skip its tests in the case that Valkyrie is in use for Collection.
    tamsin johnson authored and dunn committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    96f60a2 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2021

  1. simplify setup and clarify expectations for PermissionsCreateService

    these specs stubbed ActiveFedora in unnecessary places, and just generally had
    convoluted setup and expectations (one test memoized an empty array, used a
    before block to populate it, and then checked its contents as the only
    expectation!).
    
    don't exercise code under test in `subject` or `before`.
    tamsin johnson authored and tamsin johnson committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    8b444a0 View commit details
    Browse the repository at this point in the history
  2. use valkyrie for PermissionsCreateService

    query collection from Valkyrie and use it to handle PermissionsCreateService
    logic.
    tamsin johnson authored and tamsin johnson committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    fc0d4a0 View commit details
    Browse the repository at this point in the history
  3. remove superflouous subject definitions from SolrDocument specs

    these are just extra test setup and can be squashed down.
    tamsin johnson authored and tamsin johnson committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    7666a8f View commit details
    Browse the repository at this point in the history
  4. don't use memoized subject to exercise code under test

    this indirection makes tests less readable! use `subject` for the object under
    test, and exercise code in the individual examples.
    tamsin johnson authored and tamsin johnson committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    8f64be3 View commit details
    Browse the repository at this point in the history
  5. add valkyrie handling for Dashboard::CollectionsController actions

    adds Valkyrie handling for `#create`, `#update` and `#destroy` actions on
    `Dashboard::CollectionsController`.
    
    these implementations are a bit simple, but pass all the controller level test
    for these actions (the `#files` action remains unhandled). this handling is
    invoked whenever `@collection` is a `Valkyrie::Resource`. the easiest way to
    achieve this is to set `Hyrax.config.collection_model` to a Valkyrie model class
    name.
    tamsin johnson authored and tamsin johnson committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    17b75d0 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2021

  1. update the ResourceSync list writer to support Valkyrie collections

    tamsin johnson authored and mcritchlow committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    8feff97 View commit details
    Browse the repository at this point in the history
  2. Allow ExposedModelsRelation to support Valkryie

    via the Hyrax.config.collection_class
    mcritchlow authored and tamsin johnson committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    6f68d2c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bd5a86d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    108539f View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5159 from samvera/read-only-3x

    Add read only mode feature
    dlpierce authored Oct 15, 2021
    Configuration menu
    Copy the full SHA
    24076f0 View commit details
    Browse the repository at this point in the history
  6. refactor NestCollectionsController and NestCollectionsForm

    extend Collection abilities to allow checking for `:deposit` access by id (we
    use the id anyway, so this avoids looking up a Collection model and then
    retrieving its id).
    
    extend `NestCollectionsForm` to support passing in ids for "parent" and "child"
    collections. the goal of this refactor is to make it easy for the controller to
    pass through params. since the user specifies collections by id, using
    `ActionController::Parameters` as the arguments to the form greatly reduces form
    building logic in the controller.
    
    lastly, refactor the controller itself to use this new approach. this reveals a
    whole lot of duplicate code, which can be further refactored in later work.
    tamsin johnson authored and tamsin johnson committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    ac548c2 View commit details
    Browse the repository at this point in the history
  7. deprecate NestCollectionsController#build_*_form methods

    move authorization logic into controller actions (this really doesn't belong in
    anything named "build"), and then extract now duplicated form initialization
    logic into a single lazy-accessor method.
    
    deprecate the old methods since they're likely used in overridden actions by
    downstream apps (in general, we try to treat even "private" controller methods
    as public API, because of the prevelance of monkey patching).
    tamsin johnson authored and tamsin johnson committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    b537f65 View commit details
    Browse the repository at this point in the history
  8. refactor NestCollectionController specs

    reduce longlines, reduce duplication of parameters, rearrange.
    tamsin johnson authored and tamsin johnson committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    ccc49fb View commit details
    Browse the repository at this point in the history
  9. extract collection type id from gid

    rather than forcing a lookup of the collection type, extract the
    `URI::GID::model_id`. this is more general, since not all models will have
    lookup logic in `collection_id`, but the Collection contract guarantees a
    `#collection_type_gid` that will return a valid GlobalID formatted string.
    tamsin johnson authored and tamsin johnson committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    d5eefce View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2021

  1. failing test for collection not assigning depositor

    elrayle authored and tamsin johnson committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    eafa8cd View commit details
    Browse the repository at this point in the history
  2. add depositor when collection is a valkyrie resource

    elrayle authored and tamsin johnson committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    859ade4 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. only test models that exist in collection abilities

    If `Collection` does not exist in the application, then ability checks that reference that class raise an exception.  Since some code has been converted to use `Hyrax::PcdmCollection` .
    
    NOTE: Tests were refactored to have a single test for all `to be_able_to` and one for all `not_to be_able_to`.  They were originally written this way.  The refactor in PR #5148 was an attempt to get specificity in failure reporting.  But as it is uncommon for these tests to fail and the tests run in 23s instead of 3m in the single test approach, it seems prudent to use the original approach for testing.
    elrayle authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    3a9536e View commit details
    Browse the repository at this point in the history
  2. refactor to always include FactoryBot.

    elrayle authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    6c3c64f View commit details
    Browse the repository at this point in the history
  3. failing test for controller not copying collection type permissions t…

    …o collection on create
    elrayle authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    4150a22 View commit details
    Browse the repository at this point in the history
  4. apply permissions to collection from collection_type

    elrayle authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    dac1efb View commit details
    Browse the repository at this point in the history
  5. Update spec/controllers/hyrax/dashboard/collections_controller_spec.rb

    Co-authored-by: tamsin johnson <[email protected]>
    2 people authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    63ed5d6 View commit details
    Browse the repository at this point in the history
  6. Update spec/controllers/hyrax/dashboard/collections_controller_spec.rb

    Co-authored-by: tamsin johnson <[email protected]>
    2 people authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    7121b3b View commit details
    Browse the repository at this point in the history
  7. update Collection::PermissionCreateService to handle collections and …

    …admin sets
    
    This service is flexible enough to handle both valkyrie and active fedora collections and administrative sets.
    
    NOTE: Most of the changes in this file is are related to indentation changes for the refactor to use `class << self` since all methods are class methods.
    
    The only substantive change is the way that `collection_type` is set in `#create_default`
    
    One other change is that `#create_default` said it returns a PermissionTemplate, but it was returning the results of `#reset_access_controls_for` which returns a `Boolean`.  Updated the method to actually return the permission template.
    elrayle authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    a3a5d89 View commit details
    Browse the repository at this point in the history
  8. use collection’s permission create service instead of duplicating the…

    … process in admin set’s create service
    elrayle authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    b0044b8 View commit details
    Browse the repository at this point in the history
  9. make admin sets respond to :collection_type_gid

    elrayle authored and tamsin johnson committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    1fa578b View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2021

  1. skip CollectionForm specs if ActiveFedora isn't used for Collections

    this form should only be used if an ActiveFedora `Collection` model is
    used. otherwise simply skip the specs in CI.
    tamsin johnson committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    9143984 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2021

  1. skip ActiveFedora indexing if Wings is disabled

    this whole module requires type checking on Wings, so just don't include it if
    Wings is disabled.
    tamsin johnson committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    1dd5fda View commit details
    Browse the repository at this point in the history
  2. add param_key and plural to Hyrax::CollectionName

    we want the collection form data to be the same regardless of the model
    used. ActiveModel naming is the right place to handle this.
    tamsin johnson committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    6066063 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #5216 from samvera/collection-form-af-only

    skip CollectionForm specs if ActiveFedora isn't used for Collections
    VivianChu authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    357bdd9 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #5219 from samvera/col-param-key

    add param_key and plural to `Hyrax::CollectionName`
    VivianChu authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    fa00008 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5218 from samvera/disable-wings

    skip ActiveFedora indexing if Wings is disabled
    VivianChu authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    e7f351a View commit details
    Browse the repository at this point in the history
  6. refactor specs for permission template access deletion

    the tests for this controller were not sufficiently granular to make debugging
    easy. i encountered this working on Collection support for Valkyrie (where these
    tests are failing seemingly due to #5214). it took me some time to understand
    what was going wrong, so i wanted to make the tests clearer by following the
    one-expectation-per-spec-block pattern.
    tamsin johnson committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    2937529 View commit details
    Browse the repository at this point in the history
  7. find legacy collections in CollectionsSearchBuilder

    even when using Valkyrie (and Hyrax::PcdmCollection), we expect Wings to index
    to the ActiveFedora Solr core using `::Collection`. for this reason, searches
    should continue to resolve legacy `::Collection` references for the moment.
    tamsin johnson authored and tamsin johnson committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    4cba6d9 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2021

  1. helperize resolution of thumbnail labels

    extract dependency on Form level `#thumbnail_title` methods to a helper, avoid
    NoMethodError that breaks the entire page if this method isn't present in an
    application's form implementation.
    tamsin johnson authored and tamsin johnson committed Oct 23, 2021
    Configuration menu
    Copy the full SHA
    328b52d View commit details
    Browse the repository at this point in the history
  2. map SolrDocument#collection? to configured class

    using `#collection?` on the `hydra_model` turns out to be useless, since
    `hydra_model` is actually a Class, not a model instance.
    
    instead just respect whatever model is configured. trust that
    `SolrDocument#hydra_model` will get resolved to the configured class.
    tamsin johnson authored and tamsin johnson committed Oct 23, 2021
    Configuration menu
    Copy the full SHA
    d55b356 View commit details
    Browse the repository at this point in the history
  3. add a file download event to Hyrax.publisher

    create a topic for tracking file downloads.
    tamsin johnson authored and tamsin johnson committed Oct 23, 2021
    Configuration menu
    Copy the full SHA
    ca22bd7 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. don't fall through to 204 No Content when unsure of model type

    `PermissionTemplateAccessesController` decides where to redirect based on the
    SolrDocument's model type, but falls through to a 204 No Content if the
    SolrDocument isn't sure what it is.
    
    this is probably okay for successes, even if it's a bit user unfriendly, but is
    a serious problem for failures where we don't want to be returning a Successful
    response status code!
    
    even for successes, it's hard to see the downside of redirecting to the
    collection edit path by default. can't be worse than redirecting to a blank
    page.
    tamsin johnson authored and tamsin johnson committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    ada661a View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2021

  1. set Valkyrie versions to '>= 2.1.1', '< 3.0.0.a’

    Avoids an issue where setting Valkyrie to `’< 3.0’` allows Valkyrie to resolve to `3.0.0.beta1`.
    elrayle authored and tamsin johnson committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    814359c View commit details
    Browse the repository at this point in the history
  2. Update hyrax.gemspec

    Co-authored-by: tamsin johnson <[email protected]>
    2 people authored and tamsin johnson committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    8e6cba6 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2021

  1. add some contextual documentation for DefaultMiddlewareStack.

    tamsin johnson authored and dunn committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    2a41dba View commit details
    Browse the repository at this point in the history
  2. add @see documentation to Hyrax::Controller#transactions

    tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    351f7b0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #5228 from samvera/tx-docs

    add @see documentation to `Hyrax::Controller#transactions`
    elrayle authored Oct 28, 2021
    Configuration menu
    Copy the full SHA
    d51cb75 View commit details
    Browse the repository at this point in the history
  4. simplify _relationships partial view spec

    extract duplicated setup to a shared `before` block. remove unused setup.
    tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    ca58b18 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    61e8806 View commit details
    Browse the repository at this point in the history
  6. add call! and create! which return the admin set

    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    6f8608d View commit details
    Browse the repository at this point in the history
  7. separate out active fedora create of admin set

    This is in prep of the next step that will be able to create a `Hyrax::AdministrativeSet`.
    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    e9f88f9 View commit details
    Browse the repository at this point in the history
  8. support create of Hyrax::AdministrativeSet

    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    c38af93 View commit details
    Browse the repository at this point in the history
  9. add test for new #create! in AdminSetCreateService

    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    546f16f View commit details
    Browse the repository at this point in the history
  10. check that #create_default_admin_set calls #create_default_admin_set!

    Since this method doesn’t do any of the real work, only check that it passes through.  The real work will be tested in the method that performs the work.
    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    502bf6d View commit details
    Browse the repository at this point in the history
  11. check that #create calls through to #create!

    Since this method doesn’t do any of the real work, only check that it passes through.  The real work will be tested in the method that performs the work.
    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    be6e24e View commit details
    Browse the repository at this point in the history
  12. update . create_default_admin_set! to create Hyrax::AdministrativeSet

    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    abdcd27 View commit details
    Browse the repository at this point in the history
  13. refactor to always use FactoryBot before build and create

    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    830a7ab View commit details
    Browse the repository at this point in the history
  14. Only test with Hyrax::AdministrativeSet

    update comments to reference `Hyrax::AdminstrativeSets` instead of `AdminSet`
    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    780a187 View commit details
    Browse the repository at this point in the history
  15. deprecate call and create

    `.call` and `#create` methods return Boolean and may hide runtime errors.  Instead, use `.call!` and `#create!` respectively.
    elrayle authored and tamsin johnson committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    4b488ef View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2021

  1. respect hyrax index adapter config

    downstream apps can provide solr config! respect that when its in use.
    tamsin johnson committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    470f93f View commit details
    Browse the repository at this point in the history
  2. refactor AdminSetCreateService specs

    Integrated the changes from PR #5213 over the service updates in PR #5225.
    elrayle authored and tamsin johnson committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    d6c44f5 View commit details
    Browse the repository at this point in the history
  3. break out single long test into multiple tests

    elrayle authored and tamsin johnson committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    12ccb72 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #5223 from samvera/index-adapter

    respect hyrax index adapter config
    elrayle authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    29887d7 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5231 from samvera/relationships-partial

    simplify _relationships partial view spec
    elrayle authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    1db8d3c View commit details
    Browse the repository at this point in the history
  6. test AdminAdminSetMemberSearchBuilder for collection search

    update specs to ensure the correct models are included in the search:
    
      - always include `Collection`,
      - include configured collection model name,
      - include registered curationconcerns
    
    should the implementation be updated to search using the indexed generic type?
    tamsin johnson committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    4acebd9 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #5229 from samvera/col-admin-set-search

    test AdminAdminSetMemberSearchBuilder for collection search
    elrayle authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    8ee8055 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2021

  1. include module for PermissionTemplate

    When using the postgres adapter, the following error happens when creating collection permissions.
    
    ```
    NameError: uninitialized constant PermissionTemplate
    /Users/elr37/Documents/__DEVELOPMENT__/Samvera/TEST/nurax-pg/vendor/bundle/ruby/2.7.0/bundler/gems/hyrax-8c6b1d32e8a1/app/services/hyrax/collections/permissions_create_service.rb:17:in `create_default'
    ```
    
    This happened because the permission template was referenced without the module…
    ```
    PermissionTemplate.create!
    ```
    
    The fix is to reference permission template with the module…
    ```
    Hyrax::PermissionTemplate.create!
    ```
    elrayle committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    8251c8f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5238 from samvera/col_create_perm

    include module for PermissionTemplate
    elrayle authored Nov 1, 2021
    Configuration menu
    Copy the full SHA
    87f8845 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2021

  1. Configuration menu
    Copy the full SHA
    37429a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d427efa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f43c78e View commit details
    Browse the repository at this point in the history
  4. Merge pull request #5239 from samvera/col_index_depositor

    add depositor to pcdm collection indexer
    elrayle authored Nov 2, 2021
    Configuration menu
    Copy the full SHA
    011ce3a View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5240 from samvera/fix_admin_set_valkyrie_create

    Fix admin set valkyrie create
    elrayle authored Nov 2, 2021
    Configuration menu
    Copy the full SHA
    97f4560 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2021

  1. Allow work form to display when wings is disabled

    When `disable_wings=true`, the `Wings` constant is not defined.  As a result, you cannot check directly to see if the metadata adapter is “Wings::Valkyrie::MetadataAdapter”.  This check results in a “NameError”.  If we check for `disable_wings` first, then it avoids the check of the metadata adapter.
    elrayle committed Nov 3, 2021
    Configuration menu
    Copy the full SHA
    10de79a View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2021

  1. Merge pull request #5242 from samvera/no_wings

    Allow work form to display when wings is disabled
    dlpierce authored Nov 4, 2021
    Configuration menu
    Copy the full SHA
    268f1ab View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2021

  1. fix bug in Hyrax::Ability#download_permissions SolrDocument handling

    the mistaken namespacing of `::SolrDocument` led to mistakenly restricted
    authentication on SolrDocument download. where `can?(:download, id)` had the
    expected behavior `can?(:download, solr_document)` gave `false` in all cases.
    
    this bug in `Ability` had been present for some time. beginning in Hyrax 3.1.0,
    we rely on this permission to be correct, so the visible in that release.
    
    this issue was reported as #5241.
    tamsin johnson committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    7932ca1 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Merge pull request #5250 from samvera/ability-solr-doc-download

    fix bug in Hyrax::Ability#download_permissions SolrDocument handling
    dlpierce authored Nov 8, 2021
    Configuration menu
    Copy the full SHA
    4ac72df View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2021

  1. generated indexer test requires resource variable

    elrayle authored and tamsin johnson committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    c35ba18 View commit details
    Browse the repository at this point in the history
  2. refactor dashboard collections form template

    remove unused stubs; move other stubs closer to where they're needed; reduce
    indirection (e.g. exercise code under test in `it`, not `before` blocks).
    tamsin johnson committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    403a2e4 View commit details
    Browse the repository at this point in the history
  3. Adds workflow to trigger nurax deploy on push

    McClain Looney committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    43704c6 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. add a spec for DeepIndexingService

    this service was untested at the unit level. we're discussing adding caching, so
    some test of the baseline behavior seems necessary.
    tamsin johnson committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    5dd04d3 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2021

  1. Merge pull request #5252 from samvera/test-deep-index

    add a spec for DeepIndexingService
    dlpierce authored Nov 12, 2021
    Configuration menu
    Copy the full SHA
    07e588b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5251 from samvera/col-form

    refactor dashboard collections form template
    dlpierce authored Nov 12, 2021
    Configuration menu
    Copy the full SHA
    ff8be0d View commit details
    Browse the repository at this point in the history
  3. Merge pull request #5220 from samvera/permission-templates-access-specs

    refactor specs for permission template access deletion
    dlpierce authored Nov 12, 2021
    Configuration menu
    Copy the full SHA
    89e1b47 View commit details
    Browse the repository at this point in the history
  4. Prepare release 3.2.0

    dlpierce committed Nov 12, 2021
    Configuration menu
    Copy the full SHA
    2ecfc79 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2021

  1. Merge pull request #5256 from samvera/release-3.2.0

    Prepare release 3.2.0
    dlpierce authored Nov 16, 2021
    Configuration menu
    Copy the full SHA
    56ca515 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. listeners: add further comments about Dry::Events behavior

    dunn authored and tamsin johnson committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    83f99f5 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2021

  1. create postgres_adapter for testing

    This does not fully work yet.
    
    * Did not install valkyrie migrations.
    * Did not run valkyrie migrations.
    
    Probably need to install migrations into a seperate directory so they do not get included by the generator.
    
    Question about the right way to allow tests to run with postgres database only when adapter is postgres.  Otherwise, want to run with currently configured test database.
    
    Uses `persistor.save(resource: administrative_set)` to test the use of postgres for saving.
    elrayle authored and tamsin johnson committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    f59cd82 View commit details
    Browse the repository at this point in the history
  2. add valkyrie postgres adapter migrations to dassie

    This adds the migrations when using Docker, but not for engine cart.  Will need to explore further the approach to use for engine cart since it is used by CCI.
    elrayle authored and tamsin johnson committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    8fea026 View commit details
    Browse the repository at this point in the history
  3. add valkyrie postgres migrations to test app

    force circle ci cache regen
    elrayle authored and tamsin johnson committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    6a3d447 View commit details
    Browse the repository at this point in the history
  4. add a list of actions that Hyrax::Ability defines rules for

    generated this programatically by inspecting cancan internals. this is the full
    list of ability actions we handle authorization on via Hyrax's `Hyrax::Ability` mixin.
    tamsin johnson committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    5fad817 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5260 from samvera/ability-action-list

    add a list of actions that Hyrax::Ability defines rules for
    elrayle authored Nov 30, 2021
    Configuration menu
    Copy the full SHA
    61ed827 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2021

  1. persist the default admin set id in the database

    This also makes the default admin set and id accessible through `Hyrax.config`.  The first time it is accessed, the default admin set will be created if it doesn’t already exist.  If the default admin set id is saved in the database changes, it will reset the instance variable in `Hyrax.config` that caches the default admin set.
    
    The adopted approach maintains `Hyrax::AdminSetCreateService.find_or_create_default_admin_set` as the place where the default admin set is created.  So all code using that method will continue to work.  Also, checking if an admin set is the default remained in `Hyrax::AdminSetCreateService.default_admin_set?`
    
    Includes a new migration for the table saving the default admin set id, so the cache of the test app for CCI needed to be regenerated.
    
    Remaining Work:
    * update references to the default admin set and it’s id to use `Hyrax.config.default_admin_set` and `.default_admin_set_id`, respectively
    elrayle committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    31b2b6e View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2021

  1. save default admin set before testing for default_admin_set_id

    The default_admin_set does not have to have the id saved, but it does have to exist with the `Hyrax::AdminSetCreateService::DEFAULT_ID` as the id if it is not saved.  This allows it to be found.
    
    Since these tests are testing whether or not the create service can find the unsaved default admin set id, they were updated to create the default admin set and save the id using the factory.
    elrayle committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    ba7a0bb View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5263 from samvera/as_create_default_with_config

    persist the default admin set id in the database
    elrayle authored Dec 3, 2021
    Configuration menu
    Copy the full SHA
    b717a3c View commit details
    Browse the repository at this point in the history
  3. Analytics (#5089)

    Fixes #4564 #4530 #3551 #2542 #2566 Maybe others?
    
    This work was sponsored by Oregon Digital as part of the IMLS National Leadership Grant to support its project, Open Impact: Developing Robust Analytics for Open Source Solution Bundle Hyrax.
    
    This code overhauls the built in display of reports and metrics for Hyrax. It makes it compatible with both GA v3 and Matomo and lays ground work for other adapters in the future.
    
    Changes proposed in this pull request:
    
    Turn analytics on/off, choose your analytics provider of choice (google or matomo), and set api details in an ENV file
    Wire up graphs on dashboard to work based off analytics data (number of total visitors, returning visitors, new user signups)
    New tab in dashboard sidebar for "analytics reports". Dropdown includes options for "Work Reports" or "Collection Reports"
    Design and develop Work and Collection reports to show views and download counts for individual files. Data is set by default to last 30 days, by month by month, as well as custom date range. This data is pulled in directly from Google or Matomo API's.
    View and Download counts are available to be exported to .csv format
    
    Co-authored-by: Alisha Evans <[email protected]>
    Co-authored-by: Sara G <[email protected]>
    Co-authored-by: Sara G <[email protected]>
    Co-authored-by: April Rieger <[email protected]>
    Co-authored-by: April Rieger <[email protected]>
    Co-authored-by: Sara G <[email protected]>
    Co-authored-by: tamsin johnson <[email protected]>
    8 people authored Dec 3, 2021
    Configuration menu
    Copy the full SHA
    7412631 View commit details
    Browse the repository at this point in the history
  4. make the member presenter factory for WorkShowPresenter configurable

    the default implementation of `WorkShowPresenter#member_presenter_factory` had a
    hard coded dependency on `MemberPresenterFactory`, which depended on
    `AF::Base#list_source`. an alteranative implementation at
    `PcdmMemberPresenterFactory` already exists and is in use in the
    `form_file_set_select_for` view helper, as well as a drop-in replacement for
    `WorkShowPresenter#member_presenter_factory` in Surfliner's `comet`. this
    override can now be set by doing `WorkShowPresenter.presenter_factory_class =
    PcdmMemberPresenterFactory` (e.g.) in an initializer.
    
    the factory for member presenters was already settable on the instance level,
    but the more common configuration need is to have a site-wide override.
    tamsin johnson authored and tamsin johnson committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    da8abc8 View commit details
    Browse the repository at this point in the history
  5. bump engine cart cache

    tamsin johnson committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    cafca08 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #5269 from samvera/bump-engine-cart

    bump engine cart cache
    elrayle authored Dec 3, 2021
    Configuration menu
    Copy the full SHA
    105c3d2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fea44e4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ce3a103 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #5270 from samvera/dassie_schema

    update dassie schema to include new hyrax_default_administrative_set table
    elrayle authored Dec 3, 2021
    Configuration menu
    Copy the full SHA
    66271d7 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2021

  1. make CharacterizationService configurable at the Job class level

    allow CharacterizeJob to accept configuration for the service to use.
    this service must respond to `#run` with the `pcdm:File` object and a
    file path (is filepath optional?).
    tamsin johnson authored and tamsin johnson committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    703ce4a View commit details
    Browse the repository at this point in the history
  2. check if user can create based on configured collection model

    Fixes #5272
    
    Dashboard -> Collections was checking hardcoded `Collection` instead of `Hyrax.config.collection_class` to determine if the user could create any collections.  This was preventing the `New Collection` button from displaying when configured to use `Hyrax::PcdmCollection` model.
    elrayle committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    ef4adc7 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

  1. Configuration menu
    Copy the full SHA
    8a636ba View commit details
    Browse the repository at this point in the history
  2. mark new work feature test pending

    Issue #5248 recommended removal of the failing feature test generated for work types.  Further discussion recommended marking it pending.
    
    Minimally, users need to uncomment some lines if they generate more than one work type.  To prevent this test from failing out-of-the-box, it is marked pending.
    elrayle committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    de784a1 View commit details
    Browse the repository at this point in the history
  3. Update lib/hyrax/transactions/admin_set_create.rb

    Co-authored-by: Chris Colvard <[email protected]>
    elrayle and cjcolvar authored Dec 7, 2021
    Configuration menu
    Copy the full SHA
    6d3658b View commit details
    Browse the repository at this point in the history
  4. Merge pull request #5268 from samvera/as_transactions

    add transactions for creating an admin set
    elrayle authored Dec 7, 2021
    Configuration menu
    Copy the full SHA
    3ba11bf View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5273 from samvera/fix/5272_missing_new_collection…

    …_button
    
    check if user can create based on configured collection model
    elrayle authored Dec 7, 2021
    Configuration menu
    Copy the full SHA
    58e014e View commit details
    Browse the repository at this point in the history
  6. Merge pull request #5274 from samvera/validate_pcdm_col

    add validations for required fields to pcdm_collection_form
    elrayle authored Dec 7, 2021
    Configuration menu
    Copy the full SHA
    90ec04f View commit details
    Browse the repository at this point in the history
  7. Merge pull request #5255 from samvera/fix/5248_remove_gen_feature_spec

    mark feature test for AF work types pending
    elrayle authored Dec 7, 2021
    Configuration menu
    Copy the full SHA
    a3ed17f View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. Adding to troubleshooting section (#5262)

    * Adding to troubleshooting section
    
    * typo
    
    Co-authored-by: Chris Colvard <[email protected]>
    
    Co-authored-by: Daniel Pierce <[email protected]>
    Co-authored-by: Chris Colvard <[email protected]>
    3 people authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    79c90af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe34499 View commit details
    Browse the repository at this point in the history
  3. fix syntax in .env; no empty assignments

    tamsin johnson authored and tamsin johnson committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    e2c83ff View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Configuration menu
    Copy the full SHA
    cd9baaf View commit details
    Browse the repository at this point in the history
  2. mark unmodified tests pending ‘update of test to work with Hyrax::Pcd…

    …mCollection’
    
    NOTE: A few tests pass without requiring changes.  Those were not marked pending.
    elrayle committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    ebe5f72 View commit details
    Browse the repository at this point in the history
  3. Fix working_directory_spec for docker-compose

    Previously this test hardcoded the working path as `/tmp/uploads/`,
    which caused it to fail in docker-compose situations. This commit fixes
    it to simply use `Hyrax.config.working_path`.
    marrus-sh authored and tamsin johnson committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    325dc6a View commit details
    Browse the repository at this point in the history
  4. Correct spacing to please rubocop

    marrus-sh authored and tamsin johnson committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    1c14721 View commit details
    Browse the repository at this point in the history
  5. Use File.join to handle trailing slash variance

    Right now docker-compose puts a trailing slash in the working path, but
    CircleCI does not.
    marrus-sh authored and tamsin johnson committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    b586aff View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4d57079 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c8a2997 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

  1. provide a NullAnalyticsParser if no analytics provider is given

    this dynamic `include` strategy seems like it could be approved upon with a more
    conventional dependency injecton or Strategy pattern approach. in the meanwhile,
    don't `NameError` on startup if no analytics provider is specified.
    tamsin johnson committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    f937888 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5267 from samvera/val_col_create_tests

    test creation of collections when valkyrie resource & fix failures
    dlpierce authored Dec 10, 2021
    Configuration menu
    Copy the full SHA
    d76407e View commit details
    Browse the repository at this point in the history
  3. Merge pull request #5282 from samvera/val/col_listing

    fix dashboard -> collection not showing collections created as valkyrie resources
    dlpierce authored Dec 10, 2021
    Configuration menu
    Copy the full SHA
    fdf78a1 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #5283 from samvera/val_col_create_forward

    fix failure to forward to collection edit after create for PcdmCollection
    dlpierce authored Dec 10, 2021
    Configuration menu
    Copy the full SHA
    85c8c7c View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5284 from samvera/analytics-parser-fallback

    provide a NullAnalyticsParser if no analytics provider is given
    dlpierce authored Dec 10, 2021
    Configuration menu
    Copy the full SHA
    6ecff5a View commit details
    Browse the repository at this point in the history
  6. temporarily skip thumbnail for PcdmCollection

    See Issue #5286
    elrayle committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    524c490 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #5287 from samvera/val/col_skip_thumbnail

    temporarily skip thumbnail for PcdmCollection
    dlpierce authored Dec 10, 2021
    Configuration menu
    Copy the full SHA
    b971747 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. Rename InvalidSolrID to RecordNotFound

    The former has been deprecated in Blacklight since 2015 and will no
    longer be supported in Blacklight 7. See
    projectblacklight/blacklight@32832e7 .
    marrus-sh authored and tamsin johnson committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    52bb3b1 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. dassie: update db schema

    dunn authored and tamsin johnson committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    4b51ad9 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. Configuration menu
    Copy the full SHA
    a91445f View commit details
    Browse the repository at this point in the history
  2. wings: hard-code AF::File.default_sort_params

    dunn authored and tamsin johnson committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    3d0daba View commit details
    Browse the repository at this point in the history
  3. Address log4j CVE-2021-44228

    This should be able to be removed once `8.11.1` is released, hopefully
    in the next day or so.
    
    see: https://solr.apache.org/security.html#apache-solr-affected-by-apache-log4j-cve-2021-44228
    mcritchlow authored and tamsin johnson committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    89bc452 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6491c60 View commit details
    Browse the repository at this point in the history
  5. Fix SerializationError in Regenerate Derivatives job

    CreateDerivativesJob expects a FileID of type String instead of a Hydra::PCDM::File object.  
    see https://github.com/samvera/hyrax/blob/main/app/jobs/create_derivatives_job.rb#L6
    
    Running the task as-is gives me the following error:
    ```
     RAILS_ENV=production bundle exec rails hyrax:file_sets:regenerate_derivatives 
    [DEPRECATION] PCDM is deprecating 'Class#PreservationMasterFile'. Use Class#PreservationFile instead.
    rails aborted!
    ActiveJob::SerializationError: Unsupported argument type: Hydra::PCDM::File
    ```
    
    This was the simplest change I could make to get the task to run successfully.
    mark-dce authored and tamsin johnson committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    e3baf5e View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2021

  1. Update Solr version to 8.11.1 in Chart

    To more permanently address the log4j CVE
    mcritchlow authored and tamsin johnson committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    4ad489f View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2021

  1. Qa::Authorities: SearchBuilder#with not #where

    SearchBuilder#where is more complicated in Blacklight 7 and expects
    some kind of hash. SearchBuilder#with doesn’t seem to cause any
    problems, although note that it will reset ANY existing
    `blacklight_params` instead of just `q`.
    marrus-sh authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    2503857 View commit details
    Browse the repository at this point in the history
  2. Use SearchBuilder#with to determine nesting depth

    SearchBuilder#where seems to introduce all sorts of problems, not the
    least of which being wrapping the query in quotes even when we have a
    hash. These problems can be averted by using #with, although the result
    is a bit monstrous.
    marrus-sh authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    9e744d1 View commit details
    Browse the repository at this point in the history
  3. Use *_sim not *_tesim for catalog facet tests

    The *_tesim facet search fails, presumably because only *_sim facets
    are declared in the catalog blacklight configuration.
    projectblacklight/blacklight#2410 might explain why this used to work?
    marrus-sh authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    45666fe View commit details
    Browse the repository at this point in the history
  4. Update solr version that has been tested

    jlhardes authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    8dfc116 View commit details
    Browse the repository at this point in the history
  5. add Hyrax::Controller#repository

    Blacklight 6 makes `#repository` available on each controller. Blacklight 7
    removes this.
    
    Probably, Hyrax shouldn't be depending on `#repository` directly? but until we
    can do whatever it is Blacklight 7 prefers, shim in a compatibility layer.
    tamsin johnson authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    73bde8e View commit details
    Browse the repository at this point in the history
  6. Add Hyrax::Controller#search_builder_class

    In Blacklight 7, this is only available through `blacklight_config`, but
    we have a lot of code which depends on its presence on the controller
    itself, which was allowed in Blacklight 6. Compare
    497eeec.
    marrus-sh authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    d3f2257 View commit details
    Browse the repository at this point in the history
  7. use a fake instead of a double for LeaseSearchBuilder specs

    the `double` used in this test was really fragile. some time ago a realistic
    fake got implemeted for this. let's update!
    tamsin johnson authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    6ca5db0 View commit details
    Browse the repository at this point in the history
  8. more fake search builders

    tamsin johnson authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    c56659a View commit details
    Browse the repository at this point in the history
  9. Use FakeSearchBuilder in search builder tests

    See 2d906a9; there is a fake already implemented for these situations
    which is much less fragile than the (now broken in Blacklight 7)
    doubles which were being used.
    marrus-sh authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    180fa1a View commit details
    Browse the repository at this point in the history
  10. refactor specs for Qa::Authorities::Collection for readability

    remove unused setup and managed whitespace for readability on
    `Qa::Authorities::Collection`. i think this whole test setup can be refactored
    to stop using `ActiveFedora`, and that should probably happen next.
    
    this is motivated by these tests failing in Blacklight 7.
    tamsin johnson authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    e937c3c View commit details
    Browse the repository at this point in the history
  11. Please rubocop

    marrus-sh authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    c4c4123 View commit details
    Browse the repository at this point in the history
  12. Add blacklight_config to RestrictionService

    Blacklight 7+ `SearchBuilder`s expect this to be present.
    marrus-sh authored and tamsin johnson committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    e1c0c4f View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2022

  1. Update WorksSearchBuilder specs for Blacklight 7

    Previously, these tests hardcoded the default blacklight filters, which
    have changed from Blacklight 6 to 7. This commit revises the tests to
    instead only verify that our own filters have been added to the end.
    marrus-sh authored and dunn committed Jan 7, 2022
    Configuration menu
    Copy the full SHA
    313f283 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3aab0dc View commit details
    Browse the repository at this point in the history
  3. dassie: add pry to gemfile

    dunn committed Jan 7, 2022
    Configuration menu
    Copy the full SHA
    f847693 View commit details
    Browse the repository at this point in the history
  4. dassie: fix analytics defaults

    comments aren't allowed in .env files
    dunn committed Jan 7, 2022
    Configuration menu
    Copy the full SHA
    f2c09c6 View commit details
    Browse the repository at this point in the history
  5. Support previous yaml config structure for Analytics (#5315)

    * Support previous yaml config structure for Analytics, allowing time for folks to transition their applications to the new format
    
    * Update app/services/hyrax/analytics/google.rb
    
    Co-authored-by: Chris Colvard <[email protected]>
    
    * Update spec/lib/hyrax/analytics_spec.rb
    
    Co-authored-by: Chris Colvard <[email protected]>
    
    * better deprecation comment
    
    * fix spec after moving to deprecation
    
    Co-authored-by: Chris Colvard <[email protected]>
    orangewolf and cjcolvar authored Jan 7, 2022
    Configuration menu
    Copy the full SHA
    441b6f8 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2022

  1. refactor Hyrax::FileMetadata specs

    one expectation per test; use named rspec subject.
    tamsin johnson authored and tamsin johnson committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    c52f3ea View commit details
    Browse the repository at this point in the history
  2. don't attempt to save AF::WithMetadata::MetadataNode#file_hash

    `ActiveFedora::WithMetadata::MetadataNode` provides a `#file_hash` attribute,
    but writing to it, even with the existing data, prevents all saves.
    
    Wings needs to map data in and out of this class freely, and this attribute
    functions as a honeypot. it baits Wings to preserve the data, and then fails
    save when the converters try to do keep the existing data. since any attempt to
    write this data will break save, ActiveFedora should treat it as read only.
    
    never include `MetadataNode#file_hash` in changed attributes lists when Wings is
    loaded.
    tamsin johnson authored and tamsin johnson committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    64a610a View commit details
    Browse the repository at this point in the history
  3. teach hyrax how to characterize Valkyrie file uploads

    dunn authored and tamsin johnson committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    90db4aa View commit details
    Browse the repository at this point in the history
  4. add spec for ValkyrieCharacterizationService

    test `ValkyrieCharacterizationService`'s public `#run` interface.
    dunn authored and tamsin johnson committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    252c553 View commit details
    Browse the repository at this point in the history
  5. rework ValkyrieCharacterizationService

    ValkyrieCharacterizationService was initially ported in from Hydra::Works and
    lightly modified to work with Valkyrie. the ported code was a little messy, and
    in want of cleanup.
    
    the public interface on `#run` is changed here to use named parameters, and some
    of the private methods are rewritten to harden them up. references to OM, which
    was removed from the Hyrax dependency tree in 2019, are removed. unused and
    opaque behavior around "proxied terms" is removed entirely. `#send`s are changed
    to `#public_send` to avoid accidentally calling private behavior (which could be
    injected by manipulating the mapping hash).
    
    we also add a test for publishing the metadata updates on the metadata node, and
    add the implementation for that.
    tamsin johnson authored and tamsin johnson committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    e0b3871 View commit details
    Browse the repository at this point in the history
  6. fixup documentation and other comments on ValkyrieIngestJob

    tamsin johnson authored and tamsin johnson committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    d7f5cd7 View commit details
    Browse the repository at this point in the history
  7. lib/engine: add hydra-file_characterization

    required by ValkyrieCharacterizationService
    dunn committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    f928b65 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. add a matcher to check a (valkyrie) FileSet for file members

    this matcher should make it easy to check if a file set has at least one file
    member, or to check if its file members are exactly the files we expect (under
    `#==` equality).
    tamsin johnson authored and dunn committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    51794cc View commit details
    Browse the repository at this point in the history
  2. make the characterization service configurable

    allow configuration of which characterization service to use for valkyrie
    objects at the engine level (`Hyrax.config`). this offers more flexibility for
    downstream users, who only need to provide a service that responds to `#run` to replace.
    tamsin johnson authored and dunn committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    3a389f6 View commit details
    Browse the repository at this point in the history
  3. test deposit of files via WorkUploadsHandler

    `Hyrax::WorkUploadsHandler` should always ingest files matching its
    uploads. prior to this, its tests skipped running the background job that
    handles ingest. that job has (still) no unit tests of its own.
    
    this makes inroads toward comprehensive ingest tests by wiring in one spec from
    `WorkUploadsHandler` down. we stub out the characterizer since that behavior has
    strong tests of its own, and we don't want to include the system call to
    `fits.sh` here---the background job is run by the ActiveJob test adapter
    directly in the app container, so the fits dependency isn't expected to be
    installed.
    tamsin johnson authored and dunn committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    86169ae View commit details
    Browse the repository at this point in the history
  4. wings: add an error message for a Wings/Fedora-specific error

    fedora won't save a `FileMetadata` node (`describedby`, in LDP terms) unless
    it has already been created alongside a file it describes. if a caller tries to
    save one independenly, `ActiveFedora` raises a `RuntimeError` with
    the (accurate, but terse) message "Save the file first".
    
    introduce a custom error type to help future devs figure out the pattern they're
    looking for.
    tamsin johnson authored and dunn committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    6c384f1 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2022

  1. Merge pull request #5253 from samvera/repo_dispatch

    Adds workflow to trigger nurax deploy on push
    elrayle authored Jan 19, 2022
    Configuration menu
    Copy the full SHA
    03201a5 View commit details
    Browse the repository at this point in the history
  2. do not get all collections for dashboard (#5325)

    `@collections` cannot be set with `Collection.order` when `Collection` is `Hyrax::PcdmCollection`.  The `order` method is not defined.  Use of `all` was suggested, but it is also not defined for `Hyrax::PcdmCollection`.
    
    There is an alternative approach to get all collections, but it is not clear that this is necessary.
    * `@collections` does not appear to be used anywhere (added in PR #5089) which was the PR that added the new Analytics
    * `@collections` does not appear to have been used prior to this PR in any `views` or `presenters`
    * getting all collections is very expensive and should be avoided unless really necessary
    * if collections are required, it is better to get them from solr instead of the persistent store.  This will also enforce permissions if search builders are used.
    
    For all these reasons, setting `@collections` is being removed.
    elrayle authored Jan 19, 2022
    Configuration menu
    Copy the full SHA
    740840a View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2022

  1. fix dashboard/my/collections when default admin set table doesn’t exist

    A bug caused the missing table to be checked even after determining that saving the default admin set id wasn’t supported.  Added a failing test and fixed the bug.
    elrayle committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    dd6501a View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2022

  1. Merge pull request #5328 from samvera/bc_default_adminset

    fix dashboard/my/collections when default admin set table doesn’t exist
    elrayle authored Jan 21, 2022
    Configuration menu
    Copy the full SHA
    a728375 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. check solr directly for depositor instead of going through ActiveFedora

    elrayle authored and tamsin johnson committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    7b7c2ae View commit details
    Browse the repository at this point in the history
  2. prepare release v3.3.0

    tamsin johnson authored and tamsin johnson committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    297bd6e View commit details
    Browse the repository at this point in the history
  3. add @member_docs to assigns for dashboard/collections/show view spec

    blacklight newly *requires* a `documents` arg for `#render_document_index`.
    
    we think we actually populate this, but this view spec didn't bother before and
    needs to now.
    tamsin johnson authored and tamsin johnson committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    cb48cf6 View commit details
    Browse the repository at this point in the history
  4. add Blacklight::Searchable-like behavior to Hyrax::Controller

    set the search service, and provide compatibility between Hyrax's use of
    `search_results` and Blacklight 7's `Searchable` mixin.
    tamsin johnson authored and tamsin johnson committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    828cc4b View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2022

  1. ValkyrieIngestJob: ensure FileMetadata exists

    Some adapters (fcrepo) will automatically create a metadata object, while others
    won't.  So let's do a little `find_or_create`-style check here to make sure we
    don't try to query a non-existent object.
    dunn authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    c93caa5 View commit details
    Browse the repository at this point in the history
  2. remove unused private method in WorkUploadsHandler

    all callers to this method were removed, so it's no longer needed.
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    abc7263 View commit details
    Browse the repository at this point in the history
  3. fixup docs for ValkyrieIngestJob

    some of the inline docs for this class documented incorrect types.
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    5469ff8 View commit details
    Browse the repository at this point in the history
  4. fix failing test for #original_file? status

    after the ingest job runs:
    
      - the metadata should be saved, even if the characterizer didn't save it.
      - the uploaded file should be set as an `#original_file? # => true`
    
    since the file set is created specifically for this uploaded file, we always
    want a file uploaded through this process to be THE `#original_file` for the
    FileSet.
    
    it's possible we'll want to reuse this ingest job to attach files for other
    "uses"/of other types. in this case, we should consider parameterizing the use.
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    21dafa9 View commit details
    Browse the repository at this point in the history
  5. chart: bump version of hyrax for helm chart

    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    8790fb6 View commit details
    Browse the repository at this point in the history
  6. add @member_docs to assigns for admin/admin_sets/show view spec

    blacklight newly *requires* a `documents` arg for `#render_document_index`.
    
    our controller actually populates this, but this view spec didn't bother before
    must do so now.
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    4158803 View commit details
    Browse the repository at this point in the history
  7. add test for published events in ValkyrieIngestJob specs

    it's important that this job publish the right events. for now, test that it
    publishes for the ingest. this event should have a payload containing the
    `FileMetadata` for the new ingest.
    
    it looks like some publishes are missing (e.g. there's a note saying to publish
    an update for the FileSet membership change), or incorrectly scoped (the
    characterizer publishes a `object.metadata.updated` when it's changing a File's
    metadata; in PCDM, Files are not Objects).
    tamsin johnson authored and dunn committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    c032d21 View commit details
    Browse the repository at this point in the history
  8. unfreeze default FileMetadata#type array

    freezing this default makes it impossible to add to!
    tamsin johnson authored and dunn committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    052186a View commit details
    Browse the repository at this point in the history
  9. Test returning of pcdm_collections, force globalid to a string when q…

    …uerying, use global use_valkyrie flag
    cjcolvar committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    dd993f3 View commit details
    Browse the repository at this point in the history
  10. add a test for query of original file from a file_set after ingest

    we're having some trouble with this (maybe?) cross adapter, so before making
    changes let's get a test in on the Wings side.
    tamsin johnson authored and dunn committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    593cea7 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #5368 from samvera/valkyrie_collection_type_collec…

    …tions
    
    Test returning of pcdm_collections
    elrayle authored Jan 25, 2022
    Configuration menu
    Copy the full SHA
    8b3ca45 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8c0979b View commit details
    Browse the repository at this point in the history
  13. publish updates for collection membership in transactional save

    some time ago we introduced `collection.membership.updated` as an event
    topic. this introduces publishing of those events to the save step of
    transactions.
    
    this tx step should:
      - continue to function without change for change sets that do not have
      `#member_of_collection_ids` as a field;
      - likewise when no collection changes are included in the change set;
      - publish only for added collections.
    
    opting here to publish only the collection id for the changed collections, since
    a lot of care is taken to ensure Hyrax doesn't need to fetch a collection in
    whole to change its membership. the tradeoff is that listeners will need to pull
    the collection themselves if they need more data about it than just the
    id. doing this across multiple listeners could be expensive.
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    52fb8fc View commit details
    Browse the repository at this point in the history
  14. add payload documentation for *.metadata.updated events

    we could probably do something fancy with YARD to document event payloads, but
    this is a start.
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    4df65d6 View commit details
    Browse the repository at this point in the history
  15. Merge pull request #5373 from samvera/only_necessary_tabs

    Only call render if tabs should be shown
    elrayle authored Jan 25, 2022
    Configuration menu
    Copy the full SHA
    0a1c287 View commit details
    Browse the repository at this point in the history
  16. add new event topic for object membership changes; publish in ingest

    adds `object.membership.updated` to track membership updates on pcdm:Object
    resources. publish this event when Hyrax ingests objects via
    `Hyrax::ValkyrieIngestJob`.
    
    this provides a hook we can subscribe to to reindex file sets when new files are
    added to their membership.
    
    followup work should review existing places where Objects and FileSets change
    membership and publish accordingly.
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    4165795 View commit details
    Browse the repository at this point in the history
  17. Update valkyrie_ingest_job.rb

    dunn authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    181b227 View commit details
    Browse the repository at this point in the history
  18. update documentation for ValkyrieIngestJob

    remove a stale @todo and add a top-level class doc
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    3ed03db View commit details
    Browse the repository at this point in the history
  19. listen for membership changes on objects; index in response

    when membership changes take place, index the relevant objects.
    
    this is a pretty naive implementation of this requirement. refinements with
    fewer hard/manual solr commits are possible and should be considered as
    development continues.
    tamsin johnson authored and tamsin johnson committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    c783355 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2022

  1. update admin set create process to convert to valkyrie resource when …

    …receiving AF adminset
    elrayle authored and tamsin johnson committed Jan 26, 2022
    Configuration menu
    Copy the full SHA
    f000b8b View commit details
    Browse the repository at this point in the history
  2. log create admin set errors

    elrayle authored and tamsin johnson committed Jan 26, 2022
    Configuration menu
    Copy the full SHA
    8146e45 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2df3a05 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #5381 from samvera/val/as_config_class

    display admin set new form when configured for AdministrativeSet
    elrayle authored Jan 26, 2022
    Configuration menu
    Copy the full SHA
    67b7565 View commit details
    Browse the repository at this point in the history
  5. prepopulate AdministrativeSetForm#member_ids for display in UI

    when loading the admin set form, we want to populate the member ids.
    
    these are tracked by an inverse reference property `admin_set_id` on the
    members, so we define a prepopulator to run a query on that.
    
    i found that wasn't quite enough, because `Wings` wasn't supporting inverse
    lookup for admin sets. since the admin set RDF property is configurable, and the
    index terms on ActiveFedora's side are derived from the configured property's
    qname, we need to do the same on query. the solution for this problem is a
    little hacky, but gets the job done; maybe it can be refactored later?
    tamsin johnson committed Jan 26, 2022
    Configuration menu
    Copy the full SHA
    945659f View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2022

  1. Persist visibility changes during PcdmCollection updates

    cjcolvar authored and tamsin johnson committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    1aed227 View commit details
    Browse the repository at this point in the history
  2. wings: ensure FileMetadata pulled from ActiveFedora has a file id

    the approach where we use the exact same id for `FileMetadata` and the Storage
    Adapter's file object doesn't work. it's necessary to include the protocol to
    lookup the file.
    
    add a test for round tripping content from the `FileMetadata` and make it
    pass. transforming the id is a bit more complicated than i was hoping, but the
    approach here should work even if custom id mappings are being used by
    downstream apps.
    tamsin johnson authored and dunn committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    326bcaa View commit details
    Browse the repository at this point in the history
  3. restore compatiblitity for Valkyrie usage of FileActor; deprecate

    FileActor's valkyrie handling was experimental and is abandoned.
    
    recent changes broke it, so this restores compatibility and then
    deprecates. hopefully we can avoid further churn in these code branches.
    tamsin johnson authored and dunn committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    aef09c8 View commit details
    Browse the repository at this point in the history
  4. ValkyrieIngestJob: don't publish stale metadata

    dunn authored and tamsin johnson committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    8d0e7fb View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5389 from samvera/admin-set-member-prepop

    prepopulate `AdministrativeSetForm#member_ids` for display in UI
    elrayle authored Jan 27, 2022
    Configuration menu
    Copy the full SHA
    0475500 View commit details
    Browse the repository at this point in the history
  6. a first hack at editing admin sets using Valkyrie

    a transactional approach
    tamsin johnson committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    ce4f1be View commit details
    Browse the repository at this point in the history
  7. add a transactional destroy for valkyrie admin sets

    wire in an admin set transaction for handling destroy via the admin/admin_set
    controller.
    
    extends the existing `DeleteResource` step to support collections and adds a new
    step to check whether an admin set is empty. this step may depend on #5389 to
    work with ActiveFedora/Wings.
    tamsin johnson committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    7ec9d9d View commit details
    Browse the repository at this point in the history
  8. make rubocop happy

    elrayle authored and tamsin johnson committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    34229d8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4ce581f View commit details
    Browse the repository at this point in the history
  10. use Hyrax.logger for logging

    elrayle committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    a624f32 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #5392 from samvera/admin-set-edit-valkyrie

    a first hack at editing admin sets using Valkyrie
    elrayle authored Jan 27, 2022
    Configuration menu
    Copy the full SHA
    984dde5 View commit details
    Browse the repository at this point in the history
  12. Merge pull request #5394 from samvera/admin-set-create-valkyrie

    initial take on support create for valkyrie administrative sets
    elrayle authored Jan 27, 2022
    Configuration menu
    Copy the full SHA
    c959fef View commit details
    Browse the repository at this point in the history
  13. use helper to get permission template for collections and admin sets

    elrayle authored and tamsin johnson committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    8e41759 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2022

  1. WorkShowPresenter#member_presenter_factory: pick based on solr model

    Valkyrized applications can't use the legacy MemberPresenterFactory, which
    depends on the AF `list_source`
    dunn authored and tamsin johnson committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    bb9f393 View commit details
    Browse the repository at this point in the history
  2. use valkyrie-compatible controller methods in FileSet views

    Valkyrized FileSets don't have a `#parent` method, but the FileSetController
    provides a helper method we can use for compatibility
    dunn authored and tamsin johnson committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    4d0a998 View commit details
    Browse the repository at this point in the history
  3. chart: document chart publishing process

    tamsin johnson committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    d858666 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #5415 from samvera/chart-push

    chart: document chart publishing process
    dlpierce authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    ccbb0e3 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2022

  1. add Hyrax::AdministrativeSets to the set of classes displayed on Dash…

    …board->Collections
    elrayle authored and tamsin johnson committed Jan 29, 2022
    Configuration menu
    Copy the full SHA
    6792f5f View commit details
    Browse the repository at this point in the history
  2. inculde permissions and visibility in AdministrativeSet solr doc

    elrayle authored and tamsin johnson committed Jan 29, 2022
    Configuration menu
    Copy the full SHA
    0954b08 View commit details
    Browse the repository at this point in the history
  3. Fix nokogiri on arm64 alpine

    dlpierce authored and tamsin johnson committed Jan 29, 2022
    Configuration menu
    Copy the full SHA
    01606e3 View commit details
    Browse the repository at this point in the history
  4. Update FITS

    dlpierce authored and tamsin johnson committed Jan 29, 2022
    Configuration menu
    Copy the full SHA
    54b6f04 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2022

  1. add collection_type_gid attribute to Hyrax::AdministrativeSets

    Collection type gid is required for listing admin sets at Dashboard -> Collections.  This is what identifies this as an admin set.
    elrayle committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    838a554 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5422 from samvera/as_index_gid

    add collection_type_gid attribute to Hyrax::AdministrativeSets
    elrayle authored Jan 31, 2022
    Configuration menu
    Copy the full SHA
    f01616d View commit details
    Browse the repository at this point in the history
  3. AdministrativeSet#description should be single-valued

    related to #5385.
    tamsin johnson authored and tamsin johnson committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    8d84eaa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    19bee57 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d81a025 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0e38ff0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    db9779b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4aca3ae View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    31a510f View commit details
    Browse the repository at this point in the history
  10. Cleanup

    apertome committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    f20b254 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    75c88f0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a47fa40 View commit details
    Browse the repository at this point in the history
  13. Merge

    apertome committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    d6d255b View commit details
    Browse the repository at this point in the history