Skip to content

Commit

Permalink
Release 1.24 (#174)
Browse files Browse the repository at this point in the history
* Cscttv 3244 hidden profile handling (#159)

Update TTV model to include field ”hidden” in table dim_user_profile. When user profile is set to state ”hidden”, it is removed from Elasticsearch index. When profile is removed from state ”hidden”, then Elasticsearch index is updated. Simplify code related to Elasticsearch actions. Add model ProfileSettings for API data. Add methods for getting and modifying settings. Use memory cache to store settings data.

* TTV model update 4.5.2023 (#160)

dim_publication:
- international_collaboration bit NULL
- business_collaboration bit NULL
- self_archived_code bit NULL

* CSCTTV-3244 Fix error in ORCID webhook (#161)

Fix bug where database context was not available during ORCID webhook processing (in Elasticsearch update).

* CSCTTV-3267 Populate fullName property (#162)

When first name and last name are known, populate property full name. This is needed in the Elasticsearch index to execute name searches in user profiles.

* CSCTTV-3275 Admin command to update all profiles in Elasticsearch (#163)

Add endpoint in admin controller, which triggers update on all user profiles in Elasticsearch

* Cscttv 3269 orcid funding decisions import (#164)

* CSCTTV-3269 ORCID fundings import

Import ORCID fundings into table dim_profile_only_funding_decision.

* CSCTTV-3269 ORCID fundings profile editor data

Add data from dim_profile_only_funding_decision into profile editor data.

* CSCTTV-3269 ORCID fundings organization handling

Get ORCID funding related organization name from either dim_organization or dim_identifierless_data. Improve RORID organization matching from dim_pid.

* Fix bug in Swagger specification of ProfileSettings endpoint (#165)

* Modify GitHub workflow configuration

* CSCTTV-3268 ORCID dataset import (#166)

* CSCTTV-3268 ORCID dataset import

* Fix bug in Swagger specification of ProfileSettings endpoint (#165)

* CSCTTV-3268 ORCID dataset import - profile editor data

* Use correct referencedata code scheme when getting user choice options. (#167)

* CSCTTV-3269 fix handling of missing ORCID funding properties (#168)

* Modify ORCID affiliation organization handling. Fixes bug when linked organization is changed from DimIdentifierlessData to DimOrganization (and vice versa). (#169)

* Limit ORCID research activity name name to 255 (#170)

Limit ORCID research activity name name to 255 since in database dim_profile_only_research_activity.name_en max length is 255.

* Handle settings endpoint error case, where user profile does not exist. (#171)

* TTV model update in DimPid (#173)

alter TABLE [dbo].[dim_publication] alter column [international_collaboration] [bit] NOT NULL
alter TABLE [dbo].[dim_publication] alter column [business_collaboration] [bit] NOT NULL
alter TABLE [dbo].[dim_publication] alter column [self_archived_code] [nvarchar](255) NULL
  • Loading branch information
sarkikos authored May 25, 2023
1 parent 6a9b008 commit 6b8b52e
Show file tree
Hide file tree
Showing 58 changed files with 2,686 additions and 828 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ "devel" ]
branches: [ "master", "devel", "qa", "release*" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "devel" ]
branches: [ "master", "devel", "qa", "release*" ]
schedule:
- cron: '19 17 * * 0'

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ name: .NET
on:
pull_request:
branches:
- "devel"
- "qa"
- "master"
- "main"
- "**"

jobs:
build:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"created-date": { "value": 1684156470906 },
"last-modified-date": { "value": 1684156470906 },
"source": {
"source-orcid": {
"uri": "https://sandbox.orcid.org/0000-0001-6790-8767",
"path": "0000-0001-6790-8767",
"host": "sandbox.orcid.org"
},
"source-client-id": null,
"source-name": { "value": "Timo J S" },
"assertion-origin-orcid": null,
"assertion-origin-client-id": null,
"assertion-origin-name": null
},
"put-code": 15862,
"path": "/0000-0001-6790-8767/funding/15862",
"type": "grant",
"organization-defined-type": null,
"title": {
"title": { "value": "Funding without amount" },
"translated-title": null
},
"short-description": null,
"amount": null,
"url": null,
"start-date": null,
"end-date": null,
"external-ids": null,
"contributors": null,
"organization": {
"name": "Test agency name",
"address": {
"city": "Helsinki",
"region": null,
"country": "GR"
},
"disambiguated-organization": null
},
"visibility": "public"
}
66 changes: 66 additions & 0 deletions aspnetcore/src/api.Tests/Infrastructure/funding-detail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"created-date": { "value": 1683523680278 },
"last-modified-date": { "value": 1683523680278 },
"source": {
"source-orcid": {
"uri": "https://sandbox.orcid.org/0000-0001-6790-8767",
"path": "0000-0001-6790-8767",
"host": "sandbox.orcid.org"
},
"source-client-id": null,
"source-name": { "value": "Timo J S" },
"assertion-origin-orcid": null,
"assertion-origin-client-id": null,
"assertion-origin-name": null
},
"put-code": 15531,
"path": "/0000-0001-6790-8767/funding/15531",
"type": "grant",
"organization-defined-type": { "value": "Test funding subtype" },
"title": {
"title": { "value": "Test title of funded project" },
"translated-title": null
},
"short-description": "This is a test description of test funding.",
"amount": {
"value": "1999.5",
"currency-code": "EUR"
},
"url": { "value": "https://www.google.fi" },
"start-date": {
"year": { "value": "2010" },
"month": null,
"day": null
},
"end-date": {
"year": { "value": "2013" },
"month": { "value": "02" },
"day": null
},
"external-ids": {
"external-id": [
{
"external-id-type": "grant_number",
"external-id-value": "123456789",
"external-id-normalized": null,
"external-id-normalized-error": null,
"external-id-url": { "value": "https://mytestgrantlink.com" },
"external-id-relationship": "self"
}
]
},
"contributors": null,
"organization": {
"name": "Aalto University",
"address": {
"city": "Espoo",
"region": "Uusimaa",
"country": "FI"
},
"disambiguated-organization": {
"disambiguated-organization-identifier": "https://ror.org/020hwjq30",
"disambiguation-source": "ROR"
}
},
"visibility": "public"
}
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@
"value": "2019"
},
"month": {
"value": "03"
"value": "04"
},
"day": null
},
Expand Down Expand Up @@ -1058,18 +1058,18 @@
"value": "02"
},
"day": {
"value": "02"
"value": "13"
}
},
"end-date": {
"year": {
"value": "2001"
},
"month": {
"value": "02"
"value": "03"
},
"day": {
"value": "02"
"value": "14"
}
},
"organization": {
Expand Down Expand Up @@ -2692,7 +2692,7 @@
]
},
"url": null,
"type": "journal-article B",
"type": "website",
"publication-date": {
"year": {
"value": "2019"
Expand Down Expand Up @@ -2787,7 +2787,7 @@
]
},
"url": null,
"type": "journal-article C",
"type": "book",
"publication-date": null,
"journal-title": {
"value": "Learned Publishing"
Expand Down Expand Up @@ -2841,7 +2841,7 @@
]
},
"url": null,
"type": "journal-article C",
"type": "book",
"publication-date": {
"year": {
"value": "2012"
Expand All @@ -2859,7 +2859,162 @@
"display-index": "6"
}
]
},


{
"last-modified-date": {
"value": 1683871926444
},
"external-ids": {
"external-id": [
{
"external-id-type": "agr",
"external-id-value": "testWorkIdentifierValue",
"external-id-normalized": {
"value": "testworkidentifiervalue",
"transient": true
},
"external-id-normalized-error": null,
"external-id-url": {
"value": "https://testIdentifierUrl.com"
},
"external-id-relationship": "self"
}
]
},
"work-summary": [
{
"put-code": 1715011,
"created-date": {
"value": 1683871926444
},
"last-modified-date": {
"value": 1683871926444
},
"source": {
"source-orcid": {
"uri": "https://sandbox.orcid.org/0000-0001-6790-8767",
"path": "0000-0001-6790-8767",
"host": "sandbox.orcid.org"
},
"source-client-id": null,
"source-name": {
"value": "Timo J S"
},
"assertion-origin-orcid": null,
"assertion-origin-client-id": null,
"assertion-origin-name": null
},
"title": {
"title": {
"value": "Test dataset 1"
},
"subtitle": null,
"translated-title": null
},
"external-ids": {
"external-id": [
{
"external-id-type": "agr",
"external-id-value": "testWorkIdentifierValue",
"external-id-normalized": {
"value": "testworkidentifiervalue",
"transient": true
},
"external-id-normalized-error": null,
"external-id-url": {
"value": "https://testIdentifierUrl.com"
},
"external-id-relationship": "self"
}
]
},
"url": {
"value": "https://mytestdataset1.url.com"
},
"type": "data-set",
"publication-date": {
"year": {
"value": "2020"
},
"month": {
"value": "03"
},
"day": {
"value": "15"
}
},
"journal-title": {
"value": "Test publisher 1"
},
"visibility": "public",
"path": "/0000-0001-6790-8767/work/1715011",
"display-index": "1"
}
]
},





{
"last-modified-date": {
"value": 1683875942547
},
"external-ids": {
"external-id": []
},
"work-summary": [
{
"put-code": 1716260,
"created-date": {
"value": 1683875926474
},
"last-modified-date": {
"value": 1683875942547
},
"source": {
"source-orcid": {
"uri": "https://sandbox.orcid.org/0000-0001-6790-8767",
"path": "0000-0001-6790-8767",
"host": "sandbox.orcid.org"
},
"source-client-id": null,
"source-name": {
"value": "Timo J S"
},
"assertion-origin-orcid": null,
"assertion-origin-client-id": null,
"assertion-origin-name": null
},
"title": {
"title": {
"value": "test dataset 2"
},
"subtitle": null,
"translated-title": null
},
"external-ids": {
"external-id": []
},
"url": null,
"type": "data-set",
"publication-date": null,
"journal-title": null,
"visibility": "public",
"path": "/0000-0001-6790-8767/work/1716260",
"display-index": "1"
}
]
}






],
"path": "/0000-0002-9227-8514/works"
},
Expand Down
Loading

0 comments on commit 6b8b52e

Please sign in to comment.