Skip to content

Commit

Permalink
SONAR-24083 Add telemetries 'project_ai_detection_enabled' and 'insta…
Browse files Browse the repository at this point in the history
…nce_ai_detection_enabled'
  • Loading branch information
dejan-milisavljevic-sonarsource authored and sonartech committed Dec 27, 2024
1 parent 6438214 commit af48441
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ public List<PropertyDto> selectEntityPropertyByKeyAndUserUuid(DbSession session,
return getMapper(session).selectEntityPropertyByKeyAndUserUuid(key, userUuid);
}

public List<PropertyDto> selectProjectPropertyByKey(DbSession session, String key) {
return getMapper(session).selectProjectPropertyByKey(key);
}

/**
* Saves the specified property and its value.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Set<EmailSubscriberDto> findEmailRecipientsForNotification(@Param("notifKey") St

List<PropertyDto> selectEntityPropertyByKeyAndUserUuid(@Param("key") String key, @Param("userUuid") String userUuid);

List<PropertyDto> selectProjectPropertyByKey(@Param("key") String key);

List<PropertyDto> selectByEntityUuids(@Param("entityUuids") List<String> entityUuids);

List<PropertyDto> selectByQuery(@Param("query") PropertyQuery query);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@
and por.uuid is not null
</select>

<select id="selectProjectPropertyByKey" parameterType="map" resultType="ScrapProperty">
select
<include refid="columnsToScrapPropertyDto"/>
from properties p
inner join projects prj on prj.uuid=p.entity_uuid
where
p.prop_key = #{key, jdbcType=VARCHAR}
and p.user_uuid is null
</select>

<select id="selectByQuery" parameterType="map" resultType="ScrapProperty">
select
<include refid="columnsToScrapPropertyDto"/>
Expand Down

0 comments on commit af48441

Please sign in to comment.