feat(config): export/import ScrapeConfiguration entity graph (#47)#49
Merged
Merged
Conversation
…ble rules feat: add original C# developer guidelines file fix: update settings.json to include 'graphify' in spell check
) Closes #47 (tests only - no production code) - 12 new GivenAnImportExportService tests for scrape config file I/O - 11 new GivenAScrapeConfigurationService tests including 3 REDACTED skip tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Closes #47 - Add ApplicationMetadata.Redacted constant and ScrapeConfigurationExportFilePath - Add 6 DTO records (ScrapeConfigurationDto and children) with init properties - Add ScrapeConfigurationDtoExtensions.ToDto (redacts Password/SessionCookie/ApiKey) and ToDomain - Add ScrapeConfigurationService with ExportScrapeConfigurationAsync and ImportScrapeConfigurationAsync (REDACTED-skip + SearchCategory upsert-by-Id) - Extend IImportExportService / ImportExportService with ExportScrapeConfigurationToFile and ImportScrapeConfigurationFromFile - Add Export Config / Import Config buttons to MainWindow (disabled during operation) - Guard FilesContext.OnConfiguring with if (!optionsBuilder.IsConfigured) for testability - Register ScrapeConfigurationService in DI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Delete stale obj/ dirs left over before Directory.Build.props moved output to artifacts/ — caused duplicate assembly attribute errors - Fix ImportExportService: missing closing braces in catch block and method body (merge conflict artefacts) - Rewrite MainWindow.axaml.cs: correct merge of both parents — adds IScrapedTagService + ScrapeConfigurationService fields/ctor params, all four new event handlers, IDisposable, and all buttons in enable/disable helpers - Rewrite GivenAnImportExportService: correct merge combining classifications, scrape-config, and scraped-tag test coverage - Fix GivenAScrapeConfigurationService: replace CancellationToken.None with TestContext.Current.CancellationToken (xUnit1051) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
astar-development-jb
approved these changes
Jun 27, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ApplicationMetadata.Redactedconstant andScrapeConfigurationExportFilePath(~/Documents/Scrapper/ScrapeConfiguration.json)ScrapeConfigurationDtoand children) withinitproperties — no EF nav-back-refsScrapeConfigurationDtoExtensions.ToDtoredactsPassword,SessionCookie, andApiKey;ToDomainmaps back for importScrapeConfigurationServicewithExportScrapeConfigurationAsync(full Include chain) andImportScrapeConfigurationAsync(REDACTED-skip + SearchCategory upsert-by-Id)IImportExportService/ImportExportServiceextended withExportScrapeConfigurationToFileandImportScrapeConfigurationFromFile, mirroring the FileClassification patternMainWindow; both disabled during operation, re-enabled on completion or errorFilesContext.OnConfiguringguarded withif (!optionsBuilder.IsConfigured)for in-memory SQLite testabilityScrapeConfigurationServiceregistered as transient in DICloses #47
Test plan
GivenAnImportExportService, 11 inGivenAScrapeConfigurationService~/Documents/Scrapper/ScrapeConfiguration.jsonwith"REDACTED"for sensitive fieldsPassword/SessionCookie/ApiKeywhen value is"REDACTED"SearchCategoriesare upserted by stringId(new entries added, existing entries updated, absent entries retained)🤖 Generated with Claude Code