Skip to content

Commit a5a00ec

Browse files
authored
Source northpass-lms: Migrate to manifest-only (#44771)
1 parent 392dcaf commit a5a00ec

File tree

12 files changed

+3133
-2564
lines changed

12 files changed

+3133
-2564
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,22 @@
1-
# Northpass Lms Source
1+
# Northpass lms source connector
22

3-
This is the repository for the Northpass Lms configuration based source connector.
4-
For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/northpass-lms).
3+
This directory contains the manifest-only connector for `source-northpass-lms`.
4+
This _manifest-only_ connector is not a Python package on its own, as it runs inside of the base `source-declarative-manifest` image.
55

6-
## Local development
7-
8-
### Prerequisites
9-
10-
- Python (`^3.10`)
11-
- Poetry (`^1.7`) - installation instructions [here](https://python-poetry.org/docs/#installation)
12-
13-
### Installing the connector
14-
15-
From this connector directory, run:
16-
17-
```bash
18-
poetry install --with dev
19-
```
6+
For information about how to configure and use this connector within Airbyte, see [the connector's full documentation](https://docs.airbyte.com/integrations/sources/northpass-lms).
207

21-
### Create credentials
8+
## Local development
229

23-
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/northpass-lms)
24-
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `src/source_northpass_lms/spec.yaml` file.
25-
Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
26-
See `sample_files/sample_config.json` for a sample config file.
10+
We recommend using the Connector Builder to edit this connector.
11+
Using either Airbyte Cloud or your local Airbyte OSS instance, navigate to the **Builder** tab and select **Import a YAML**.
12+
Then select the connector's `manifest.yaml` file to load the connector into the Builder. You're now ready to make changes to the connector!
2713

28-
### Locally running the connector
29-
30-
```
31-
poetry run source-northpass-lms spec
32-
poetry run source-northpass-lms check --config secrets/config.json
33-
poetry run source-northpass-lms discover --config secrets/config.json
34-
poetry run source-northpass-lms read --config secrets/config.json --catalog sample_files/configured_catalog.json
35-
```
14+
If you prefer to develop locally, you can follow the instructions below.
3615

3716
### Building the docker image
3817

18+
You can build any manifest-only connector with `airbyte-ci`:
19+
3920
1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
4021
2. Run the following command to build the docker image:
4122

@@ -45,52 +26,40 @@ airbyte-ci connectors --name=source-northpass-lms build
4526

4627
An image will be available on your host with the tag `airbyte/source-northpass-lms:dev`.
4728

29+
### Creating credentials
30+
31+
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/northpass-lms)
32+
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `spec` object in the connector's `manifest.yaml` file.
33+
Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
34+
4835
### Running as a docker container
4936

50-
Then run any of the connector commands as follows:
37+
Then run any of the standard source connector commands:
5138

52-
```
39+
```bash
5340
docker run --rm airbyte/source-northpass-lms:dev spec
5441
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-northpass-lms:dev check --config /secrets/config.json
5542
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-northpass-lms:dev discover --config /secrets/config.json
5643
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-northpass-lms:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
5744
```
5845

59-
### Running our CI test suite
46+
### Running the CI test suite
6047

6148
You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
6249

6350
```bash
6451
airbyte-ci connectors --name=source-northpass-lms test
6552
```
6653

67-
### Customizing acceptance Tests
68-
69-
Customize `acceptance-test-config.yml` file to configure acceptance tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
70-
If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
71-
72-
### Dependency Management
73-
74-
All of your dependencies should be managed via Poetry.
75-
To add a new dependency, run:
76-
77-
```bash
78-
poetry add <package-name>
79-
```
80-
81-
Please commit the changes to `pyproject.toml` and `poetry.lock` files.
82-
8354
## Publishing a new version of the connector
8455

85-
You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
86-
87-
1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-northpass-lms test`
88-
2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
89-
- bump the `dockerImageTag` value in in `metadata.yaml`
90-
- bump the `version` value in `pyproject.toml`
91-
3. Make sure the `metadata.yaml` content is up to date.
56+
If you want to contribute changes to `source-northpass-lms`, here's how you can do that:
57+
1. Make your changes locally, or load the connector's manifest into Connector Builder and make changes there.
58+
2. Make sure your changes are passing our test suite with `airbyte-ci connectors --name=source-northpass-lms test`
59+
3. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
60+
- bump the `dockerImageTag` value in in `metadata.yaml`
9261
4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/northpass-lms.md`).
9362
5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
9463
6. Pat yourself on the back for being an awesome contributor.
9564
7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
96-
8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.
65+
8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.

airbyte-integrations/connectors/source-northpass-lms/acceptance-test-config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ connector_image: airbyte/source-northpass-lms:dev
44
acceptance_tests:
55
spec:
66
tests:
7-
- spec_path: "source_northpass_lms/manifest.yaml"
7+
- spec_path: "manifest.yaml"
88
connection:
99
tests:
1010
- config_path: "secrets/config.json"

airbyte-integrations/connectors/source-northpass-lms/main.py

-8
This file was deleted.

0 commit comments

Comments
 (0)