Skip to content

Bypass GUID Validation#66

Draft
jlre249 wants to merge 81 commits intounraid:mainfrom
jlre249:bypass-guid-validation
Draft

Bypass GUID Validation#66
jlre249 wants to merge 81 commits intounraid:mainfrom
jlre249:bypass-guid-validation

Conversation

@jlre249
Copy link
Copy Markdown

@jlre249 jlre249 commented Mar 24, 2025

Summary by CodeRabbit

  • Bug Fixes
    • Made the device selection control always accessible, removing previous restrictions.
    • Updated error messages for device identification issues for enhanced clarity.

jlre249 and others added 30 commits March 19, 2024 12:45
* main window in pretty good shape - now onto the popup boxes

* hw popup + delegate, os popup + delegate, and dst popup + delegate pretty much in a good spot. based on how the icons are displayed, didn't end up needing orange pngs, because the dark ones can be changed using ColorOverlay

* about to start working on options popup

* think the settings menu seems okay now

* language/keyboard selector & progress bar theming

* removal of a few now unused rpi pngs

* replace instances of "#2B2A29" with new UnColors singleton member mediumGray

* replace instances of "#FF8C2F" with new UnColors singleton member orange

* replace instances of "#1C1B1B" with new UnColors singleton member darkGray

* replace instances of "#FFFFFF" with color name white
* removes "use saved settings" pop up and always displays options popup instead
* ico for windows

* removed rpi-imager.ico and rpi-image.png; mods to CMakeLists.txt to swap from rpi to unraid for windows RC file and copying to 128x128 app icon folder, will need a few other changes to make this work with linux still

* renaming application from rpi-imager to unraid-imager

* changes for linux

* mac icns
* changed os list url in config.h

* default select unraid device on load
* seems to be in a good place now for both ident and network config

* added in the boot img stuff from the old usb creator (this also ensures that the volume label gets changed to UNRAID)

* get rid of unnecessary if inside else clause

* works on windows, though i did have to disable secure boot

* some misc cleanup: *help button linking to website *info button opening "about" popup *putenv to enable darkmode title bar on windows *remove obe img gz files *minor text edits *changed logo background from white to darkgray

* pushing to check on linux and mac
* local commit before switching branches

* pushing to check on linux

* working on linux

* committing new files

* completely disable devices in list that have an invalid guid
misc updates:
* shrink help/info icons + add text 
* hyperlink urls in about popup 
*adjust text in about popup 
*adjust wording of formatting text 
*adjust wording of custom img select 
*limit custom img select to zip files 
*adjust wording of invalid guid text 
*add text for missing guid
* renaming unraid-imager -> unraid-usb-creator

* more renaming + new icons

* guid working on mac, troubleshooting make bootable

* rename on format for mac

* rather than trying to make the make bootable script work on all platforms (since it's only needed for legacy boot, and we don't let the user select that as an option right now), simply display a message telling the user to run the script after burn successful

* fix embedded links in info popup

* adding back in linux drive renaming

* deb file updates
Co-authored-by: Jessica Reid <jlr@Jessicas-Mini-875.hsd1.va.comcast.net>
The legacy url currently being linked to is going away
# Conflicts:
#	src/imagewriter.cpp
#	src/linux/org.raspberrypi.rpi-imager.desktop
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 24, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The changes modify the device selection workflow in src/main.qml by removing the condition that disabled the storage device selection button based on GUID validity. The updated code now always enables the button, regardless of whether the GUID is valid. In addition, the error messages have been updated to offer clearer feedback—changing from "BLACKLISTED - Choose Another Flash Device" and "MISSING GUID - Choose Another Flash Device" to "UNABLE TO VALIDATE GUID" and "MISSING GUID" respectively. The GUID validation check within the selectDstItem function has also been removed.

Changes

File Change Summary
src/main.qml Removed the conditional disabling of the storage device button based on guidValid; updated error messages for invalid/missing GUID; eliminated GUID validation checks in the selectDstItem function.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant DeviceButton
    participant SelectionHandler

    User->>DeviceButton: Click Storage Device Button
    DeviceButton->>SelectionHandler: Initiate device selection
    SelectionHandler-->>User: Proceed without GUID check
Loading

Poem

I'm a cheerful rabbit with a coding delight,
Hopping through changes with a smile so bright.
The button's always on, no more GUID dismay,
Error messages refined in a fresh, clear way.
A joyful carrot dance for cleaner code today!
🐇🥕🎉


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jlre249 jlre249 marked this pull request as draft March 24, 2025 22:46
@jlre249 jlre249 changed the title Draft: Bypass GUID Validation Bypass GUID Validation Mar 24, 2025
jlre249 and others added 4 commits March 24, 2025 19:23
* is it this easy?

* let's try this again

* once more with feeling

* let's see if these replace the "2" qml modules from qt5

* try updating control file for debuild

* needed for linguist tools?

* see if this fixes Qt6::lprodump cmake error

* revert previous changes

* trying with install-qt-action

* syntax error

* try specifying something other than latest for os

* once more

* upload deb artifact

* see if we can hack something together here

* pick a runner that it can actually find

* keep running up that hill

* just gonna keep trying some stuff

* maybe?

* just need to re-trigger the github action

* remove changes to mac yml

* remove trailing whitespace from yml
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.

5 participants