This guide will demonstrate two methods of running this tool locally - Docker and XAMPP.
At the time of writing, Docker appears to work on all modern Operating Systems with the exception of Windows 10 Home Edition (they are hoping you will upgrade to 'Windows Pro'). Update: It seems it may be possible now to run Docker in Windows Home using WSL, according to the offical Docker instructions here. However we have not tested this route ourselves, so your mileage may vary.
If you already have Docker installed/running on your machine then run the following command from the root directory of this project to start this tool:
docker run -d -p 80:80 -v "$PWD":/var/www/html php:7.2-apache
This will mount your current directory into the docker image, so any changes will be reflected both-ways. The first run will spend a few moments downloading the php-apache image.
After it has completed simply navigate to "localhost" in your browser, and skip to Running the tool in the documentation below.
If this is your first time running the tool (and not yet downloaded this repo) then the full set of commands to download and run would be:
git clone [email protected]:jmunzer/bulk_tools.git
docker run -d -p 80:80 -v "$PWD":/var/www/html php:7.2-apache
Or alternatively, if you do not have git installed, follow the instructions below from Putting the tool in the right place.
Alternatively...
This guide will instruct you how to get these bulk tools working on a personal/work computer providing you have administrative rights enabled.
-
First download & run XAMPP.
This can be found at https://www.apachefriends.org/
- Download the latest version for your operating system of choice.
-
Once in the installer you will be prompted to 'Select Components'.
Untick everything besides the following:
Apache PHP
-
Install Location
Install XAMPP to "C:\xampp" if on Windows.
-
Windows Firewall
Depending on your Windows security settings, you may receive a Windows Security Alert from Windows Defender Firewall asking for Apache HTTP Server to communicate on certain networks. If you do, ensure that the following network is ticked:
# Private networks, such as my home or work network
-
Once XAMPP has successfully installed, please run this service by doing the following:
1) Click on the start menu 2) Type 'xampp' 3) Select 'XAMPP Control Panel'
-
Once the XAMPP Control Panel is running, start the Apache service by clicking 'Start' under Actions. If successful, you should see the following:
10:49:53 [main] Control Panel Ready 10:49:56 [Apache] Attempting to start Apache app... 10:49:56 [Apache] Status change detected: running
...and the Apache module will be highlighted in green.
- Download the script from: https://github.com/jmunzer/bulk_tools/archive/master.zip
- Extract the downloaded ZIP file to the following location: c:\xampp\htdocs
- If this is your first time
- make a copy of the
template.user.config.php
file and call ituser.config.php
- Enter your Shortcode,
- Client ID,
- Client Secret
- and talis_guid user guid (this value can be found in the final column of the exported report: All User Profiles)
- Check with Talis Support if you don't know what any of these values should be
- make a copy of the
- click on: http://localhost/bulk_tools-master/index.html
- Follow steps on webform.
An example upload file is included as list_id.txt and looks like this (one list ID per line):
5AF6B766-325D-A542-5837-7AD6DC4F703E
5D6EA0C2-45F4-268B-878B-0BEBF1C234E9
CB98F155-576C-553D-7C37-88D1A28CAF49
45146B68-9C56-92B0-AE28-0AB0D5A5239D
EAFDDB7B-B580-6FDD-8808-AE63781EB866
C3FECB4D-1509-60A3-BCB3-6E4142917C3A
B6E658B0-5DAE-CF98-5FAA-5DB345685320
C2D6D98F-5523-1A8D-BA00-5ED7114C3E9A
BC011E42-A395-9248-E147-1C869BFECF02
185251D1-23F3-F0CF-00C7-286D4645F07C
List IDs can be acquired from the TARL 'All Lists' report by grabbing the unique ID from the end of each List Link:
http://yorksj.rl.talis.com/lists/5AF6B766-325D-A542-5837-7AD6DC4F703E
Item IDs can be acquired from the TARL 'All List Items' report by grabbing the unique ID from the end of each Item Link:
http://yorksj.rl.talis.com/items/CED33BC7-309A-3306-47EB-0FB9CB9D9136
Paragraph Formatting. If you want to add formatting to your paragraph text, you can use a number of html tags. An example of some functionality can be seen with the below example - if pasted into the 'Input the desired text:' field -
<h1>This <u>paragraph</u> is<strong> in bold</strong> and can be <mark background-color: yellow>highlighted</mark>.</h1>
Every edit you make to a list is only made to the draft version of the list. to be visible to end users you need to publish your changes. Publishing lists is a 'computing expensive' operation and Talis Aspire uses a queuing mechanism to do this in the background so that you can do other things while waiting for the changes to be published.
In the future all API list publishing changes will be on a queue that won't affect real human list editors. Right now, if you put thousands of list publish requests through it will delay publish events for other users. You will always want to make sure that you only make a list publish request when needed.
We will update this readme when this issue is resolved (it is being worked on now).
There are two strategies for publishing the changes that you are making to lists.
This strategy is about not using the API to publish lists. In the future (for reasons given above) this will not be an issue, but right now this is the preferred method.
- Go to the all lists report and select lists with a status of
Published with unpublished changes
. These will be lists that may be affected be the last step in this process, you need to decide if it is important to get to a point where there are no lists wuth outstanding changes before you proceed. - Edit the list using the scripts included in this repo.
- Important Leave the list publish option set to false so that the scripts do not publish the lists.
- Complete all the edits you require. This might mean running the item or paragraph additions multiple times.
- Once all updates are complete. Go to the all lists report and select lists with a status of
Published with unpublished changes
. These will be lists which you have edited. - Use the bulk actions tools within the all lists report to queue them for publishing. These publish events will not impact end users editing lists.
This strategy limits the publish events to being once per list. It uses the API to publish the lists. Right now, this causes end user edits to be queued behind your changes. This may mean that you cause a delay to other Talis Aspire tenants who are editing their lists.
- Use the scripts to add items, paragraphs or delete items. You may have multiple operations to perform.
- On each operation, make sure the publish list option is set to false.
- On the last operation, make sure the publish list option is set to true. This will publish the lists via the API.
If you forget to make the change on the last operation, don't worry, as you can still use the all lists report to find lists with changes and bulk publish those lists.
- Report files are under the root folder of ./report_files and are separated by function.
- If you extracted the tool to the suggested location in the above steps, this will be: c:\xampp\htdocs\bulk_tools-master\report_files. Alternatively, you can find quick links to the report files from the index page > Output Logs > Output Directory