PR: https://github.com/MarquezProject/marquez/pull/388
My original issue for 0.3, nodejs, turned out to have no work available in the issue and suffered from an unorganized available work table. Therefore I have decided to switch to another issue. The issue I’ve chosen is one of my incomplete issues from 0.2, the Marquez Project. For 0.2, I started working on it but never finished it. The original work committed had many issues and when it was finally done and passed the CircleCI test, it turns out I was required to write a file-specific test for it myself. This blog post will be about the work I committed to the issue after Release 0.2, as well as the test file I have been working on for it.
For the file itself, the code went through many, many revisions as it could not pass the compiling test on the way to merging. First issue: Gradle 5.2.1 itself was not installed, therefore the test call didn’t exist. Second issue: my JRE (Java Run-time Environment) was extremely outdated, thus I couldn’t even call the test properly in the beginning. Third issue: I had to make updated to other files to work with my new file as well as add new imports. This resulted in type conversion errors, missing required variable declarations in the other files (I had to create a new constructor for a file) and other things that did not match up. After working with the maintainer of the issue, I finally completed the file, which ended up far smaller than I had imagined (literally a methods made up of 4 lines of code in the editor).
public static Namespace map(
@NonNull NamespaceName namespaceName,
@NonNull NamespaceRequest request) {
return new Namespace(namespaceName.getValue(), request.getOwner(), request.getDescription().orElse(null)); }
Next on the agenda is a test file specifically for this code. I have begin writing the basic outline of it, however I must continue to read guidelines and instructions from a website recommended to me from the maintainer. I will get this done soon.