Skip to content

Commit

Permalink
Merge pull request #357 from JarvusInnovations/develop
Browse files Browse the repository at this point in the history
Release: v1.22.3
  • Loading branch information
themightychris authored Dec 20, 2022
2 parents 94a51ae + 06275a7 commit 0f0f788
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docs/development/running-tests/fixtures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Adding fixture data

You can use this workflow for identifying and capturing fixture changes:
- load existing fixture data by running `load-fixtures` at the studio command prompt
- Take a complete snapshot of the database `dump-sql > .scratch/snapshot.before-changes.sql`
- Create new records using the UI
- Take a complete snapshot `dump-sql > .scratch/snapshot.after-changes.sql`
- Open up the two .sql files in a visual diff viewer and manually transplant the added records over to their appropriate fixture files in the repo
4 changes: 2 additions & 2 deletions php-classes/Emergence/Git/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ public function getDeployKey()
public function setDeployKey(KeyPair $keyPair)
{
$privateKeyPath = $this->getPrivateKeyPath();
file_put_contents($privateKeyPath, $keyPair->getPrivateKey().PHP_EOL);
file_put_contents($privateKeyPath, str_replace("\r\n", "\n", $keyPair->getPrivateKey()).PHP_EOL);
chmod($privateKeyPath, 0600);

$publicKeyPath = $this->getPublicKeyPath();
file_put_contents($publicKeyPath, $keyPair->getPublicKey().PHP_EOL);
file_put_contents($publicKeyPath, str_replace("\r\n", "\n", $keyPair->getPublicKey()).PHP_EOL);
chmod($publicKeyPath, 0600);

$this->deployKey = $keyPair;
Expand Down

0 comments on commit 0f0f788

Please sign in to comment.