Skip to content

Commit

Permalink
add project funding relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
chiaberry committed Feb 17, 2025
1 parent 5f6fd41 commit 4c8b4be
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
template: |
$PREVIOUS_TAG
previous tag: $PREVIOUS_TAG
## What’s changed
Expand Down
3 changes: 3 additions & 0 deletions moped-database/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2734,6 +2734,9 @@
name: moped_proj_funding
schema: public
object_relationships:
- name: moped_fund_program_object
using:
foreign_key_constraint_on: funding_program_id
- name: moped_fund_source
using:
foreign_key_constraint_on: funding_source_id
Expand Down
8 changes: 8 additions & 0 deletions moped-editor/src/queries/funding.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ export const FUNDING_QUERY = gql`
funding_amount
funding_description
funding_program_id
moped_fund_program_object {
funding_program_id
funding_program_name
}
moped_fund_source {
funding_source_id
funding_source_name
}
funding_source_id
funding_status_id
is_deleted
Expand Down
2 changes: 1 addition & 1 deletion moped-editor/src/utils/autocompleteHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export const filterOptions = (options, { inputValue, getOptionLabel }) => {
// limits options to ensure fast rendering
const limit = 40;
// applies the default autcomplete matching behavior plus our limit filter
// applies the default autocomplete matching behavior plus our limit filter
const filteredOptions = options.filter(option =>
getOptionLabel(option)
.toLowerCase()
Expand Down

0 comments on commit 4c8b4be

Please sign in to comment.