Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spring:
description: "@project.name@"
build:
version: "@project.version@"
api-spec-version: Haley
jackson:
default-property-inclusion: NON_NULL
deserialization:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,12 @@ const ApiComponent = ({
</Flex>
</Flex>
<Flex gap={8} style={{ marginTop: 2 }}>
{Object.keys(item.labels).map((l) => {
{Object.keys(item.labels)
.filter((key) => key !== "mef-api-release" && key !== "parentProductType")
.map((k) => {
return (
<Tooltip title={l} key={l}>
<Col className={styles.tags}>{item.labels[l]}</Col>
<Tooltip title={k} key={k}>
<Col className={styles.tags}>{item.labels[k]}</Col>
</Tooltip>
);
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const useCommonAddProp = ({
useNewApiMappingStore();
const [currentProp, setCurrentProp] = useState<Record<string, string>>();
const { value: isOpen, setTrue: open, setFalse: close } = useBoolean(false);

const handleAddProp = useCallback(() => {
if (!selectedProp) {
notification.error({ message: "Please select one property!" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,20 @@ public class SystemInfoService {
@Value("${spring.build.version}")
private String buildVersion;

@Value("${spring.build.api-spec-version:Haley}")
private String apiSpecVersion;

@EventListener(PlatformSettingCompletedEvent.class)
@Transactional
@Async
public void initialize() {

List<UnifiedAssetDto> list = unifiedAssetService.findByKind(AssetKindEnum.PRODUCT.getKind());
String productKey =
Optional.ofNullable(list.get(0))
.map(UnifiedAssetDto::getMetadata)
.map(Metadata::getKey)
.orElse(null);
String productSpec =
Optional.ofNullable(list.get(0))
.map(UnifiedAssetDto::getMetadata)
.map(Metadata::getLabels)
.map(t -> t.get(LabelConstants.MEF_API_RELEASE))
.orElse(null);

String productSpec = apiSpecVersion;
systemInfoRepository
.findOneByKey(KEY)
.or(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,4 @@ spec:
- classpath:/mef-sonata/api-targets-mappers-sample-data/api-target-mapper.order.uni.add.yaml
sampleConfigPaths:
- classpath:/mef-sonata/api-targets-mappers-sample-data/api-target-spec.mock.yaml
- classpath:/mef-sonata/api-targets-mappers-sample-data/api.buyer.mock.yaml



- classpath:/mef-sonata/api-targets-mappers-sample-data/api.buyer.mock.yaml
Loading