Closed timroes closed 1 year ago
Here's a quick check of the list of connectors that need to be fixed:
const yaml = require('js-yaml'); // npm install -g js-yaml
const fs = require('fs');
const FILE = '/Users/evan/workspace/airbyte/airbyte/airbyte-config/init/src/main/resources/seed/source_specs.yaml'
const doc = yaml.load(fs.readFileSync(FILE, 'utf8'));
let connector_count = 0
for (const connector of doc) {
let problems = [];
for (const [key, value] of Object.entries(connector.spec.connectionSpecification.properties)) {
if (!value.format && value.pattern && value.pattern.startsWith('^[0-9]{4}-')) {
problems.push(key)
}
}
if (problems.length > 0) {
connector_count++;
console.log("")
console.log(`### Connector: ${connector.dockerImage}`)
for (p of problems) {
console.log(` * ${p}`)
}
}
}
console.log("---")
console.log(`${connector_count} total connectors with problems`)
96 total connectors with problems
@lazebnyi @YuliiaNahoha Can you take a look at this work and estimate how much work this would be? If we have the cycles, we could try to get this done this quarter but happy to discuss further.
@YowanR coordinating here. Scanning the list, I don't immediately notice any that are databases/java. If there are any and you can't handle them, can you make a new issue and tag it to our team.
Updated the list above in the comment, to include 3 connectors that were missing from the list, that also had date fields who were not marked correctly (since some connectors use a pattern like ^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$
).
@YowanR is this on your radar? If so, I'll remove this from the Connector Ops backlog
@evantahler yes it is - GL is already working on it. Feel free to remove it from your backlog.
Since we merged https://github.com/airbytehq/airbyte/pull/19678 which enables the date picker for all date fields, we should make sure that all connector specs properly mark date fields with
format: date
orformat: date-time
in their spec. We noticed a lot of connectors only attach apattern
to it, but not theformat
key. We should to a spike to update all specs to correct those, and make sure all date fields can therefore properly use the datepicker.