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

Importing Profiles Progmatically Difficult #16

Open
sherakama opened this issue Mar 7, 2014 · 0 comments
Open

Importing Profiles Progmatically Difficult #16

sherakama opened this issue Mar 7, 2014 · 0 comments

Comments

@sherakama
Copy link
Member

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.

@sherakama sherakama changed the title Importing Profiles Pragmatically Difficult Importing Profiles Progmatically Difficult May 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant