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

Publish binary resources #194

Merged
merged 3 commits into from
Jun 3, 2024
Merged

Publish binary resources #194

merged 3 commits into from
Jun 3, 2024

Conversation

Wambere
Copy link
Contributor

@Wambere Wambere commented May 31, 2024

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes #188

Engineer Checklist

  • I have run ./gradlew spotlessApply to check my code follows the project's style guide
  • I have built and run the efsity jar to verify my change fixes the issue and/or does not break the application

ArrayList<String> resourceFiles = getResourceFiles(projectFolder);
String getFileName(String name) {
if ((name.endsWith("Register")) || (name.endsWith("Profile"))) {
String regex = "([a-z])([A-Z]+)";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

assuming here that we are always converting from camel case

Copy link
Member

Choose a reason for hiding this comment

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

can you add that to a docstring for this function?

String getBinaryContent(String fileName, String projectFolder) throws IOException {
String pathToFile;
if (fileName.contains("register")) {
pathToFile = projectFolder + "/registers/" + fileName;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

assuming we're always using this agreed on file/folder structure

Copy link
Member

Choose a reason for hiding this comment

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

yea seems reasonable, on that note, should we to the validation checker (and later the app content from template creator) something to verify the repo follows file structure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, created an issue here #195

Copy link
Member

@pld pld left a comment

Choose a reason for hiding this comment

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

comment on docstring to be addressed, otherwise lgtm!

ArrayList<String> resourceFiles = getResourceFiles(projectFolder);
String getFileName(String name) {
if ((name.endsWith("Register")) || (name.endsWith("Profile"))) {
String regex = "([a-z])([A-Z]+)";
Copy link
Member

Choose a reason for hiding this comment

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

can you add that to a docstring for this function?

String getBinaryContent(String fileName, String projectFolder) throws IOException {
String pathToFile;
if (fileName.contains("register")) {
pathToFile = projectFolder + "/registers/" + fileName;
Copy link
Member

Choose a reason for hiding this comment

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

yea seems reasonable, on that note, should we to the validation checker (and later the app content from template creator) something to verify the repo follows file structure?

@Wambere Wambere requested a review from pld June 3, 2024 10:08
@pld pld merged commit 386f9e4 into main Jun 3, 2024
4 checks passed
@pld pld deleted the 188-publish-binary branch June 3, 2024 17:08
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.

Publish binary resources
2 participants