Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[frontend] Drop BuildReasonFile model
The BuildReasonFile model was abstracting the _reason file that is stored in the backend. Though the only place where this method was used we parsed the raw xml and created another object (PackageBuildReason) out of it. Because of that it makes sense to drop this model and use a Backend::Api call like we already do elsewhere. In addition this solves an issue caused by BuildReasonFile#to_s returning nil when the file isn't available or invalid. Kudos for the idea goes to @DavidKang
- Loading branch information
Showing
3 changed files
with
11 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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