Remove snapshot and test specific code #126
Merged
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.
This pull request removes the campaign snapshot feature from the
ChatRPG
project, including its associated functionality, UI elements, and dependencies. It simplifies the codebase by eliminating methods, services, and configuration settings related to snapshots.Removal of snapshot functionality:
ChatRPG/Data/Models/Campaign.cs
: Removed theDeepCopy
method, which created deep copies of campaigns, as it was primarily used for snapshots.ChatRPG/Pages/CampaignPage.razor
: Deleted the "Save Campaign Snapshot" button from the UI.ChatRPG/Pages/CampaignPage.razor.cs
: Removed theSaveSnapshotAsync
method and its dependencies, such asUserManager
andIConfiguration
. [1] [2]ChatRPG/Services/EfPersistenceService.cs
: Deleted theSaveSnapshotAsync
method and removed the dependency onScenarioDocumentService
. [1] [2]ChatRPG/Services/IPersistenceService.cs
: Removed theSaveSnapshotAsync
method from theIPersistenceService
interface.Code cleanup and dependency removal:
ChatRPG/Services/ScenarioDocumentService.cs
: Eliminated theCopyScenarioEmbeddingForSnapshot
method and the unusedILogger
dependency. [1] [2]ChatRPG/appsettings.json
: Removed theEnableSnapshots
configuration setting.Additional cleanup:
ChatRPG/Data/Models/Character.cs
: Removed theDeepCopy
method for characters, as it was no longer needed.ChatRPG/Data/Models/Message.cs
: Removed theDeepCopy
method for messages.ChatRPG/Data/Models/NarrativeGraph.cs
: Removed theDeepCopy
method for narrative graphs.