Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Conversation

@thruflo
Copy link
Contributor

@thruflo thruflo commented Jan 12, 2023

Support:

electric config update [--app APP] [--env ENV] [--migrations-dir PATH]

Fix naming to use app and env everywhere, including the electric.json. And update the README to match latest usage.

@thruflo thruflo requested a review from magnetised January 12, 2023 15:18
@thruflo
Copy link
Contributor Author

thruflo commented Jan 12, 2023

Messed up the last commit: the "bump the version" commit actually also makes a breaking change to the bundle format to get rid of the named data import, so rather than:

import { data as bundle } from '../migrations/dist'

We just have:

import bundle from '../migrations/dist'

@icehaunter
Copy link
Contributor

Please add Closes VAX-### into the PR body

@thruflo
Copy link
Contributor Author

thruflo commented Jan 23, 2023

Closes VAX-###

Relates to [VAX-518] but doesn't close it without other PRs across repos.

Not app-id, or APP_ID or environment or ENVIROMENT_NAME or any other variant.

- `app` is configured using the `APP` argument or `-a, -app APP` option
- `env` is configured using the `-e, --env ENV` option

The electric.json data uses the naming:

```
{
  app: APP,
  env: ENV,
  migrations: PATH
}
```

Particularly to make sure that the data in the electric.json matches the naming
that we use in the docs and the client.

</end-rant>
@thruflo thruflo force-pushed the thruflo/app-and-env branch from 71dd366 to c1ea43d Compare January 23, 2023 19:14
Copy link
Contributor

@icehaunter icehaunter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not looked through +4,826 −2,826 changes, but I did play around with updated commands locally. It seems to work. I've raised a couple of non-blocking concerns on Discord

@thruflo thruflo merged commit 34dd199 into main Jan 24, 2023
@thruflo thruflo deleted the thruflo/app-and-env branch January 24, 2023 17:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants