-
-
Notifications
You must be signed in to change notification settings - Fork 80
Add author name in blog post #428
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
Merged
linkdotnet
merged 19 commits into
linkdotnet:master
from
Arnab-Developer:253-add-author-name-in-blog-post
Sep 9, 2025
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
80f1170
Add author name in blog post entity
Arnab-Developer 7d6094e
Add IsMultiModeEnabled config
Arnab-Developer 50b5525
Add author name in the claim at the time of login, if multi mode is e…
Arnab-Developer d6f003b
Save author name in the db at the time of blog post create and update
Arnab-Developer 51af427
Show author name in the top menu if multi mode is enabled
Arnab-Developer ecaa23d
Update tests
Arnab-Developer 840f33d
Rename config (address review comments)
Arnab-Developer be4925e
Remove if else from tests (address review comments)
Arnab-Developer bbc359f
Add if in the razor view (address review comments)
Arnab-Developer dfe9134
Add ef migration for author name (address review comments)
Arnab-Developer 846c5c4
Use bootstrap 5x (address review comments)
Arnab-Developer 6505604
add test for RavenDb (i forgot this before)
Arnab-Developer 160cfd1
Address review comments
Arnab-Developer a115a1c
Address review comments
Arnab-Developer 79006f1
Update config doc
Arnab-Developer c56f694
Show author name in blog preview
Arnab-Developer 9a1df8f
Show author name in read blog post page
Arnab-Developer cdba0ae
Show author name in top menu
Arnab-Developer dfa563b
Add icon
Arnab-Developer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
253 changes: 253 additions & 0 deletions
253
...kDotNet.Blog.Infrastructure/Migrations/20250830110439_AddAuthorNameInBlogPost.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
src/LinkDotNet.Blog.Infrastructure/Migrations/20250830110439_AddAuthorNameInBlogPost.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace LinkDotNet.Blog.Web.Migrations; | ||
|
||
/// <inheritdoc /> | ||
public partial class AddAuthorNameInBlogPost : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
ArgumentNullException.ThrowIfNull(migrationBuilder); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "AuthorName", | ||
table: "BlogPosts", | ||
type: "nvarchar(256)", | ||
maxLength: 256, | ||
nullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
ArgumentNullException.ThrowIfNull(migrationBuilder); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "AuthorName", | ||
table: "BlogPosts"); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.