fix: set TRAVELERP_INIT_VERSION to 0 and rename Config.json for Linux compatibility - #2
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Author
End-to-End Test ResultsTested the TIMS Travel ERP system locally after fixing TIMS App Testing (all passed)
Database Seeding VerificationAll 7 TIMS entity tables confirmed created: Pre-existing Issue (not from this PR)Nav bar links (e.g., |
… for Linux compatibility - TIMS_INIT_VERSION was set to 20250101, matching the first patch version, causing Patch20250101 (which creates all TIMS entities) to be skipped on first run since the check (20250101 < 20250101) is false. - Renamed Config.json to config.json in Site and Site.TIMS projects to match the lowercase filename the code expects, avoiding duplicate content errors on case-sensitive Linux filesystems. Co-Authored-By: patrick.bradley <patrick.bradley@cognition.ai>
devin-ai-integration
Bot
force-pushed
the
devin/1778199115-fix-tims-init-version
branch
from
May 8, 2026 17:42
e59863a to
b7dc6f6
Compare
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
Two fixes to get the TravelERP plugin working on Linux:
TRAVELERP_INIT_VERSIONset to0instead of20250101— On first run,ProcessPatches()initializes the plugin version toTRAVELERP_INIT_VERSIONand then checksif (version < 20250101). With the old value of20250101, the condition was alwaysfalse, soPatch20250101()(which creates all 7 TravelERP entities, the app, sitemap areas, and nodes) was silently skipped on every fresh database.Renamed
Config.json→config.jsoninWebVella.Erp.SiteandWebVella.Erp.Site.TravelERP— The runtime code inErpMvcExtensions.csloads"config.json"(lowercase). On case-sensitive Linux filesystems,Config.jsonis not found. A previous workaround using symlinks (config.json → Config.json) causedNETSDK1022duplicate content errors in .NET 10 SDK. Renaming the file is the clean fix.Updates since last revision
masterafter the TIMS → TravelERP rename (PR Rename TIMS to TravelERP across entire repository #3). The fix is identical in intent — the constant is nowTRAVELERP_INIT_VERSION(wasTIMS_INIT_VERSION) and the config rename applies toWebVella.Erp.Site.TravelERP(wasWebVella.Erp.Site.TIMS).Review & Testing Checklist for Human
plugin_datafor TravelERP with version20250102, this fix alone won't re-run the skippedPatch20250101. Verify whether a DB reset or manual patch invocation is needed for those environments.config.jsonrename affectsWebVella.Erp.Site(the base site project), not just TravelERP. Confirm no other tooling, CI scripts, or.csprojcontent items referenceConfig.jsonwith uppercase casing.rec_tims_*entity tables are created and the app loads athttp://127.0.0.1:5001.Notes
.NET 10 SDKauto-includes content files, which is why the old symlink workaround broke — bothConfig.jsonand theconfig.jsonsymlink were detected as separate content items.Link to Devin session: https://app.devin.ai/sessions/56e3c9458902432baa3dc3b189bf0279
Requested by: @patrickbradley-cog