-
Notifications
You must be signed in to change notification settings - Fork 62
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
Generalized Map Versioning #1032
Conversation
1047a6f
to
e88241a
Compare
apps/frontend/src/app/components/map-review/map-review-suggestions-form.component.ts
Outdated
Show resolved
Hide resolved
e88241a
to
150cb57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, but I remember someone on engine side asking for map downloads to have the same file name as a map file that is being downloaded.
apps/frontend/src/app/pages/maps/map-info/map-info.component.html
Outdated
Show resolved
Hide resolved
apps/frontend/src/app/components/search/user-search.component.html
Outdated
Show resolved
Hide resolved
Nope not a problem for us, our HTTP downloader code just fetches a big ol' buffer and we can write it wherever. |
150cb57
to
b98b263
Compare
b98b263
to
9de9661
Compare
9de9661
to
813ff53
Compare
Not a big deal in this case but would prefer you let me merge my PRs @GordiNoki, at least when it's backend changes - when we have corresponding changes in red it's easiest if they all get in at once. If it's something you're waiting on feel free to badger me or nick |
Closes #1006
Closes #857
Replaces the
MapSubmissionVersion
table withMapVersion
. Map storage is now always using the zone system, even for approved maps. Previously, prior to approval maps, would be stored atsubmissions/<MapSubmissionVersion UUID ID>.bsp
, then upon approval moved tomaps/<map name>.bsp
. Now, all maps are just stored atmaps/<MapVersion UUID ID>.bsp
. This makes frontend and game code quite a lot simpler.Whilst I haven't done admin map updating quite yet (#916), this change is essential to that system.
Also, since zones are now always stored on MapVersion, so always requires a join table to fetch, it's a lot easier to avoid fetching the zones JSON unnecessarily, plus I added Prisma's preview "omit" API which simplifies code even more. So #857 can be closed in the process.
Checks
nx run db:create-migration
and committed the migration if I've made DB schema changesfeat: Add foo
,chore: Update bar
, etc...fixup
ed into my original commits