Skip to content

Upload traces directly to Github. Corrections to PR361 #460

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

Merged
merged 64 commits into from
May 6, 2025

Conversation

miltonials
Copy link
Member

Hi @Binnette! I have checked PR#361 (WIP - New feature: Upload traces directly to Github) using the current state of the develop branch. The PR works fine, but I have found a problem when the trace size is too large, I have fixed this bug and a conflict in this PR.
I will appreciate if you have some suggestions to implement these fixes. If the new functionality is implemented, I may update the wiki to put the usage instructions for this new functionality.

Remark: the new functionality (pr#361) needs a classic gh token, instead of a fine-granuled token.

This PR is related to
#344
#361

Commits


Special thanks to @FR3DD221 for helping me find issues of the PR#361.

JeanMarcoRU and others added 30 commits September 14, 2022 16:46
…position fix is obtained

After the SDK update, UI buttons for marking waypoints remained disabled even after an accurate fix was acquired. This fix ensures that the UI buttons are enabled as soon as an accurate fix is confirmed, improving user experience in "hot start" situations.
… a temporary file path

- Modified `uploadTrackToGitHubAUX` to save the GPX file in Base64 to internal storage and pass only the file path in the Intent instead of the full content.
- Updated `GitHubUpload` to read the GPX file from the provided path, avoiding large Bundles.
- Added error handling for GPX file reading, displaying a message if reading fails.

This change prevents oversized Bundle errors and optimizes data transfer between activities.
Ensured broadcast intents are set with the package name in TagButtonOnClickListener.java, this was causing that the waypoints select meanwhile a track is recorded weren´t been saved.
@miltonials miltonials marked this pull request as ready for review February 12, 2025 03:03
@miltonials
Copy link
Member Author

This functionality allows you to upload a trace with a unique name to GitHub. If a trace with the same name already exists in the repository, OSMTracker will not update the file.
If you want to try this functionality with the ability to upload different files with the same name, you can try this branch upToGH-renamed-files

@jamescr jamescr removed this from the 2024.12 --> 2025.02 milestone Feb 14, 2025
Merge pull request labexp#516 from labexp/develop
@jamescr jamescr added this to the 2025.07 milestone Feb 28, 2025
jamescr and others added 9 commits March 27, 2025 12:26
Standardized pull request template to improve consistency in PR submissions.  
- Includes sections for description, related issues, and a checklist.  
- Ensures contributors provide relevant details for better review
Added a bug report template to ensure users provide a clear description, reproduction steps, and device details. Includes a checklist to prevent duplicate reports.
Added a configuration file to enable blank issues and direct questions to GitHub Discussions.
@Andyporras Andyporras self-requested a review May 4, 2025 14:13
Copy link
Member

@Andyporras Andyporras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Tested and works as expected.

I tested this PR on the latest develop branch. The feature successfully uploads the GPX trace along with its associated media files (photos and audio) as a ZIP archive to GitHub.
The app avoids overwriting files with the same name and handles large traces properly without crashes.

Everything works smoothly. Great improvement for collaborative mapping workflows!

@miltonials miltonials requested a review from Andyporras May 4, 2025 18:03
@miltonials
Copy link
Member Author

Hello! @Andyporras 👋🏻
Thanks for the comments. I already remove the unnecessary comments. Please, could you confirm?

@Andyporras
Copy link
Member

@miltonials yes, unnecessary comments have already been deleted

@Andyporras Andyporras merged commit 1268254 into labexp:develop May 6, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants