Skip to content
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

Add asset codename #250

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Conversation

VladimirO-kontent
Copy link
Contributor

Motivation

Which issue does this fix? Fixes #249

If no issue exists, what is the fix or new feature? Were there any reasons to fix/implement things that are not obvious?

Checklist

  • Code follows coding conventions held in this repo
  • Automated tests have been added
  • Tests are passing
  • Docs have been updated (if applicable)
  • Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test

If manual testing is required, what are the steps?

@@ -71,10 +71,13 @@ public async Task GetAssetAsync_StronglyTyped_ById_GetsAsset()
[Fact]
public async Task GetAssetAsync_StronglyTyped_ByCodename_Throws()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public async Task GetAssetAsync_StronglyTyped_ByCodename_Throws()
public async Task GetAssetAsync_StronglyTyped_ByCodename_GetsAsset()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't by asset codename also work for renditions as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have missed it in one test. The others should still throw since renditions themselves don't have codenames, only assets do.

@Sevitas Sevitas changed the title Add asset codename [DoNotMerge] Add asset codename Aug 17, 2023
@VladimirO-kontent VladimirO-kontent changed the title [DoNotMerge] Add asset codename Add asset codename Aug 23, 2023
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #250 (8e3dd02) into master (129828d) will increase coverage by 0.04%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #250      +/-   ##
==========================================
+ Coverage   84.39%   84.44%   +0.04%     
==========================================
  Files         246      246              
  Lines        2807     2816       +9     
  Branches      315      315              
==========================================
+ Hits         2369     2378       +9     
  Misses        343      343              
  Partials       95       95              
Files Changed Coverage Δ
...nt.Ai.Management/Models/Assets/AssetCreateModel.cs 100.00% <100.00%> (ø)
Kontent.Ai.Management/Models/Assets/AssetModel.cs 100.00% <100.00%> (ø)
...nt.Ai.Management/Models/Assets/AssetUpsertModel.cs 100.00% <100.00%> (ø)
...anagement/Models/StronglyTyped/AssetCreateModel.cs 100.00% <100.00%> (ø)
...t.Ai.Management/Models/StronglyTyped/AssetModel.cs 100.00% <100.00%> (ø)
...anagement/Models/StronglyTyped/AssetUpsertModel.cs 100.00% <100.00%> (ø)
....Management/Modules/ModelBuilders/ModelProvider.cs 100.00% <100.00%> (ø)
...ment/Modules/UrlBuilder/Templates/AssetTemplate.cs 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@pokornyd pokornyd merged commit ec7910b into kontent-ai:master Sep 13, 2023
7 checks passed
@VladimirO-kontent VladimirO-kontent deleted the Add_asset_codename branch March 14, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add asset codename
3 participants