Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

chore: rename blockchain type to application #131

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

jvallesm
Copy link
Collaborator

@jvallesm jvallesm commented Feb 26, 2024

Because

  • We want a wider type / group for non-AI, non-data connectors

This commit

  • renames blockchain connector to Application connector
  • (compogen) makes source_url fields valid URL
  • (compogen) fixes property order in REST connector (must start at 0)

Notes

⚠️ console and pipeline-backend need to take this change into account, otherwise the UI will break.

- When validating the field for README autogeneration, the field didn't
pass go-playground/validator `url` validator.
- When rendering the value in a README, it reference a relative path
instead of an absolute one.

Automatically updated with some `jq` magic:

```sh
for p in $(fd definitions.json); do
jq '.[0].source_url = "https://" + .[0].source_url ' $p > tmp.json && mv tmp.json $p
done;
```
@jvallesm jvallesm self-assigned this Feb 26, 2024
Copy link

linear bot commented Feb 26, 2024

Copy link

codecov bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.18%. Comparing base (7837a98) to head (041e2fc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #131   +/-   ##
=======================================
  Coverage   62.18%   62.18%           
=======================================
  Files          18       18           
  Lines        1489     1489           
=======================================
  Hits          926      926           
  Misses        440      440           
  Partials      123      123           
Flag Coverage Δ
unittests 62.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jvallesm
Copy link
Collaborator Author

@jvallesm jvallesm merged commit e6c47ec into main Feb 27, 2024
12 checks passed
@jvallesm jvallesm deleted the jvalles/ins-3739-rename-blockhain-type-to-application branch February 27, 2024 16:09
jvallesm added a commit to instill-ai/pipeline-backend that referenced this pull request Feb 27, 2024
Because

- instill-ai/protobufs#274 removed the
Blockchain
  connector type and modified the connector and operator list view type.
- Once instill-ai/connector#131 is merged,
`numbers` connector will become an application connector.

This commit

- Updates the auto-generated proto Go code, adapting the backend to the
changes:
  - Modifies the Blockchain enum value in the database via a migration.
- Modifies type conversions to take Application connector into account.
  - Removes deprecated lookup methods.
  - Updates `VIEW_XXX` enum values.
EiffelFly pushed a commit to instill-ai/console that referenced this pull request Feb 28, 2024
Because

- instill-ai/protobufs#274 removed the
Blockchain
  connector type.
- Once instill-ai/connector#131 is merged,
`numbers` connector will become an application connector.

This commit

- Updates `blockchain` references to `application`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants