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
#!/bin/bash | |
# Get the current commit SHA | |
current_commit_sha=$(git rev-parse HEAD) | |
# Get the SHA of the "origin/main" branch | |
origin_main_sha=$(git rev-parse origin/main) | |
# Check if the current commit SHA matches the "origin/main" SHA or any parent commit SHA | |
if git merge-base --is-ancestor $current_commit_sha $origin_main_sha; then |
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
@Service | |
@Slf4j | |
@ConditionalOnProperty(name = "consumer.enabled", havingValue = "true") | |
public class SimpleMessageListener implements MessageListener<byte[]> { | |
private final int maxConsumeDelaySeconds; | |
private static final String CONSUMER_PREFIX = "(CONSUMER) [{}]: "; | |
public SimpleMessageListener( |
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
@Configuration | |
@ConditionalOnProperty(name = "consumer.enabled", havingValue = "true") | |
@Slf4j | |
public class PulsarConsumerConfiguration { | |
private final PulsarClient client; | |
private final List<Consumer> consumers; | |
private final SimpleMessageListener msgListener; | |
public PulsarConsumerConfiguration( |
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
logger.info(new ObjectMessage(Map.of( | |
"totalItems", orderItems.size(), | |
"items", orderItems | |
))); |
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
@Data | |
@AllArgsConstructor | |
@NoArgsConstructor | |
public class ItemLog { | |
private Integer totalItems; | |
private List<OrderItem> items; | |
public ItemLog(List<OrderItem> items) { | |
this.items = items; | |
this.totalItems = items.size(); | |
} |
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
id | first_name | last_name | gender | username | birthdate | ||
---|---|---|---|---|---|---|---|
1 | Freda | Scotland | [email protected] | Female | fscotland0 | 6/20/85 | |
2 | Martainn | Manners | [email protected] | Male | mmanners1 | 8/18/94 | |
3 | Benjy | Biers | [email protected] | Male | bbiers2 | 5/1/62 | |
4 | Jean | Ickovits | [email protected] | Male | jickovits3 | 9/26/55 | |
5 | Cyrus | Hamlett | [email protected] | Male | chamlett4 | 9/7/53 | |
6 | Shayne | Estabrook | [email protected] | Male | sestabrook5 | 1/17/75 | |
7 | Nolie | Szymonwicz | [email protected] | Female | nszymonwicz6 | 9/4/95 | |
8 | Janette | Ratchford | [email protected] | Female | jratchford7 | 2/17/93 | |
9 | Alissa | Oloshkin | [email protected] | Female | aoloshkin8 | 8/16/92 |
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
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true"> | |
<models> | |
<model id="Input" limit="20" query="true" createrowifnonefound="true" datasource="Ui-Only" processonclient="true"> | |
<fields> | |
<field id="Data" displaytype="TEXT" label="Data"/> | |
<field id="ImportStatus" displaytype="PICKLIST" label="Import Status" ogdisplaytype="TEXT" picklistsource="manual" returntype="TEXT" defaultvaluetype="fieldvalue" defaultValue="ready" enclosevalueinquotes="true"> | |
<picklistentries> | |
<entry value="inprogress" label="In Progress"/> | |
<entry value="ready" label="Ready"/> | |
</picklistentries> |
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
<skuidpage showsidebar="true" showheader="true" tabtooverride="User"> | |
<models> | |
<model id="UserGroups" limit="20" query="true" createrowifnonefound="false" sobject="Group"> | |
<fields> | |
<field id="Name"/> | |
<field id="DeveloperName"/> | |
<field id="Type"/> | |
</fields> | |
<conditions> | |
<condition type="join" value="" field="Id" operator="in" enclosevalueinquotes="true" joinobject="GroupMember" joinfield="GroupId" logic=""> |
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
<skuidpage showsidebar="true" showheader="true"> | |
<models> | |
<model id="DummyUserModel" datasource="salesforce" sobject="User" limit="1" query="false"/> | |
</models> | |
<components> | |
<custom name="DynamicTableAndModel"/> | |
</components> | |
<resources> | |
<labels/> | |
<javascript> |
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
<skuidpage showsidebar="true" showheader="true" tabtooverride="Opportunity"> | |
<models> | |
<model id="Opportunity" limit="1" query="true" createrowifnonefound="false" sobject="Opportunity"> | |
<fields> | |
<field id="Name"/> | |
<field id="CreatedDate"/> | |
<field id="CloseDate"/> | |
<field id="Amount"/> | |
</fields> | |
<conditions> |
NewerOlder