Skip to content
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

Draft: Fix platform handling #796

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Draft: Fix platform handling #796

wants to merge 1 commit into from

Conversation

violine1101
Copy link
Member

Purpose

Fix intermittent error messages when trying to edit bug reports with an old platform that's no longer valid

Approach

Update the config to include the new platforms. Other necessary updates not implemented yet

Future work

Maybe refactor platform altogether, it's quite a mess

Checklist

  • Included tests
  • Updated documentation in README
    and docs folder
  • Tested in MCTEST-xxx

@violine1101 violine1101 marked this pull request as draft April 20, 2023 19:41
@urielsalis
Copy link
Member

Can we do a bulk change of Windows 10 - PC to Windows to reduce impact?

@violine1101
Copy link
Member Author

violine1101 commented Apr 21, 2023

This bulk change (or rather, rename) already happened. That's the issue - it's not mentioned in any of the changelogs, so the KeepPlatform module retrieves "Windows 10 - PC" as the correct platform, but the bug report is set to "Windows", so it tries to change "Windows" to "Windows 10 - PC" which obviously doesn't work. We'll probably need to add a special case to that module just for this reason.

Also KeepPlatform probably will also need a platform whitelist similar to the other platform module so that it can only set platforms in that whitelist (for other old platforms that weren't renamed, e.g. "Gear VR").

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