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

Introduces Metadata realtionships #78

Merged
merged 5 commits into from
Jan 27, 2021
Merged

Conversation

codefriar
Copy link
Contributor

Also fixes a slew of minor bugs and pmd issues like:

@returns -> @return
missing @description etc.

Also fixes a slew of minor bugs and pmd issues like:

@returns -> @return
missing @description etc.
@codefriar codefriar requested a review from a team as a code owner January 26, 2021 22:16
@codefriar
Copy link
Contributor Author

@pozil @msrivastav13 - this is a bigish pr, but most of these are minor edits. I chose to do it here, because no matter what branch i did these fixes on there'd be a ton-of-em

if (!CanTheUser.read(new Bucketed_Picklist__mdt())) {
return new List<Bucketed_Picklist__mdt>();
}
String obj = String.valueof(objId.getSObjectType());
Copy link
Contributor

Choose a reason for hiding this comment

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

possible null pointer exception? Not sure if you would like to add a null check here if Id is null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, addressing.

@@ -0,0 +1,266 @@
<?xml version="1.0" encoding="UTF-8" ?>
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure if adding or modifying the standard layouts is a good idea! If someone installs apex-recipes in production as an unlocked package (or deploying it), there will be overrides.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with @msrivastav13, I don't recommend it. If I recall well, there was some of that in the original Dreamhouse and it ended "badly".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I'm removing the layout it was an oversight and shouldn't have been added.

Copy link
Contributor

@msrivastav13 msrivastav13 left a comment

Choose a reason for hiding this comment

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

@codefriar This looks good! Except for a couple that we need to probably discuss

  1. I thought we need to do null handling for public methods. I will leave that to you here to make the decision.
  2. I am not so comfortable adding a standard layout to the app. It can override if some learning it and installs it. Maybe we can create our custom layout and add the custom field?

@codefriar
Copy link
Contributor Author

codefriar commented Jan 27, 2021 via email

Copy link
Contributor

@pozil pozil left a comment

Choose a reason for hiding this comment

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

That took some time to review but it looks good to me. I just left a couple of minor comments, no blockers.
Next time, please move the Jest test updates in a dedicated PR.

@codefriar codefriar merged commit 665c7e2 into master Jan 27, 2021
@codefriar codefriar deleted the codelive/metadatarelationships branch January 27, 2021 18:53
@codefriar codefriar mentioned this pull request Jan 27, 2021
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.

None yet

3 participants