-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agl/add is language of consultiung boolean #2983
base: develop
Are you sure you want to change the base?
Conversation
🗞 GraphQL SummaryView schema changes@@ -624,8 +624,11 @@
displayNamePronunciation: String
ethnologue: CreateEthnologueLanguage = {}
hasExternalFirstScripture: Boolean = false
isDialect: Boolean = false
+ isLanguageOfConsulting: Boolean = false
+ isLanguageOfReporting: Boolean
+ isLanguageOfWiderCommunication: Boolean
isSignLanguage: Boolean = false
leastOfThese: Boolean = false
leastOfTheseReason: String
name: String!
@@ -751,8 +754,9 @@
countries: [ID!] = []
fieldRegions: [ID!] = []
financialReportingTypes: [FinancialReportingType!] = []
globalInnovationsClient: Boolean
+ languageOfReportingId: ID
languageOfWiderCommunicationId: ID
languagesOfConsulting: [ID!] = []
organizationId: ID!
pmcEntityCode: String
@@ -2297,8 +2301,11 @@
id: ID!
"""Whether this language is a dialect."""
isDialect: SecuredBoolean!
+ isLanguageOfConsulting: SecuredBoolean!
+ isLanguageOfReporting: SecuredBoolean!
+ isLanguageOfWiderCommunication: SecuredBoolean!
isSignLanguage: SecuredBoolean!
"""Whether this language has a Least Of These grant."""
leastOfThese: SecuredBoolean!
@@ -2443,8 +2450,11 @@
}
input LanguageFilters {
isDialect: Boolean
+ isLanguageOfConsulting: Boolean
+ isLanguageOfReporting: Boolean
+ isLanguageOfWiderCommunication: Boolean
isSignLanguage: Boolean
"""Is a Least Of These partnership"""
leastOfThese: Boolean
@@ -3219,8 +3229,9 @@
globalInnovationsClient: SecuredBoolean!
"""The object's ID"""
id: ID!
+ languageOfReporting: SecuredLanguageNullable!
languageOfWiderCommunication: SecuredLanguageNullable!
"""Languages of the partner's affiliated translation projects"""
languages(input: LanguageListInput = {count: 25, filter: {}, order: ASC, page: 1, sort: "name"}): SecuredLanguageList!
@@ -6726,8 +6737,11 @@
ethnologue: UpdateEthnologueLanguage
hasExternalFirstScripture: Boolean
id: ID!
isDialect: Boolean = false
+ isLanguageOfConsulting: Boolean
+ isLanguageOfReporting: Boolean
+ isLanguageOfWiderCommunication: Boolean
isSignLanguage: Boolean
leastOfThese: Boolean = false
leastOfTheseReason: String
name: String
@@ -6859,8 +6873,9 @@
fieldRegions: [ID!]
financialReportingTypes: [FinancialReportingType!]
globalInnovationsClient: Boolean
id: ID!
+ languageOfReportingId: ID
languageOfWiderCommunicationId: ID
languagesOfConsulting: [ID!]
pmcEntityCode: String
pointOfContactId: ID
|
ee65b1f
to
e7046f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @adam-soltech!
dbschema/migrations/00033.edgeql
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You wouldn't have known this, but we're not actually checking in EdgeDB Migrations at this point. Carson is handling this himself, and grouping them together as makes sense. Eventually that will change after we're fully migrated, but for now don't worry about doing the migration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the migration the e2e tests failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes. Then for now just eliminate the EdgeDB additions completely. We'll attack that in a separate PR altogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That also breaks the build. I sent the commit without edgedb and broken build to the dev channel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll still want to take both the .edgql and .esdl files out of this PR. Edge stuff is being done separately.
maybe an enum list would be better to encompass all of these? Language.allowedUse = ['WiderCommunication', 'Consulting', 'X']; Though I guess it would be better to describe what this language is vs how the language is allowed to be used in other places. |
Yeah, after some thought I don't think the
We seem to be inconsistent on the use of |
Also I'd note that a language might be a language of consulting as well as a language of reporting or wider communication so I'm not sure an enum is the way to go. isUsedForConsulting seems better and non-redundant. If that seems good to you let me know and I will make the update |
|
If the UI is going to say "for consulting" then I'd just as soon match that. Not much is gained otherwise imo. |
I guess that's a question for product. |
I agree but will run it by product in standup tomorrow |
c2e7bf4
to
7820dfa
Compare
feat: add isLanguageOfConsulting field to Language entity
7820dfa
to
e1907a2
Compare
fix: subquery for partner fix: subquery for partner
e1907a2
to
4a1b2a1
Compare
ticket
┆Issue is synchronized with this Monday item by Unito