Skip to content

Importing Profiles Progmatically Difficult #16

@sherakama

Description

@sherakama

After authenticating and synchronizing with the API service it is difficult to import profiles progmatically as the process assumes that everything will go through the UI.

stanford_cap_api_profiles_import_form_submit() prepares and requests a response from the API server, stores the results in $_SESSION, and then redirects to a new url for processing of that request. A second user input is requested in order to select which of the results of the initial search the user would like and that form is submitted and processed in the subsequent form_submit hook using the batch api which breaks when using drush.

It would be nice if this process was abstracted so that if the initial search request returns results it would automatically import everything without batch.

This requests stems from a recent bit of work we have done with an installation profile. We want a persons CAP profile available to them immediately after installation and we generally install sites using drush si.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions