Skip to content

Conversation

@SuperJMN
Copy link
Collaborator

@SuperJMN SuperJMN commented Nov 17, 2025

There are 2 methods:

  • Get => non-existence is considered an error
  • TryGet => non-existence is tolarable (project lookup)

Fixes project lookup crashes when the project id is not found.

- Updated `ProjectAppService`, `IProjectAppService`, and `IProjectService` interfaces to include `TryGet` methods.
- Modified `Lookup` in various ViewModels to handle `Result<SafeMaybe<IList<IProjectViewModel>>>` for improved error handling.
- Enhanced UI with updated bindings and layout adjustments in `ProjectLookupView.axaml` (e.g., added `MaxWidth`, simplified styling).
- Improved diagnostic logging and error notifications in project lookup workflows.

public Task<Result<Maybe<Project>>> TryGetAsync(ProjectId projectId)
{
// this class is obsolete. Remove it ASAP.
Copy link
Member

Choose a reason for hiding this comment

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

this class or method?

Copy link
Member

@dangershony dangershony left a comment

Choose a reason for hiding this comment

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

looks good to me

@dangershony dangershony merged commit 912c17c into block-core:main Nov 17, 2025
3 checks passed
@SuperJMN SuperJMN deleted the fixes/fix-project-lookup branch November 17, 2025 21:54
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.

2 participants