Skip to content

Commit

Permalink
main to certification (#136)
Browse files Browse the repository at this point in the history
* release v2.2.0.0  (#116)

* PR Version 2.2.0.0 (#110)

* Initialized SelectionManager instance (Working version)

* Updated packages and config files

* Switched from puppeteer to playwright, and from tslint to eslint + some changes in configs

* Fixed code style according to linter's suggestions

* Updated packages

* Removed jquery

* Removed jasmine-jquery dependency and fixed tests

* Increased visual's version

* Increased the visual's version in pbiviz.json as well

* Changed callback type for addTooltipService method

* Increased version in the lock file

* Removed redundant files

* Updated libraries to latest versions

* Increased versions of API and visual and fixed Karma config

* Added support for keyboard focus

* Updated build workflow

* Fixed lodash imports and improved type checks in tests

* Polished code

* Fixed compilation errors in tests

* Updated libraries

* Updated changelog and set newest API version

* Removed tslint file

* Created formatting model

* Migrated to formatting model

* Changed displayName values for Quaity, Min font size and Max font size. Added minRepetitionsToDisplay to string resources

* Fixed bug with ColorPicker when color was not applied

* supportHighlight logic and tests

* showAll, removed unused packages, packages version up

* moved keys from cababilities to formatting settings

* removed unused npm packages
proper contextmenu handling
renamed settings object
renamed function names from c++ convention to js convention

---------

Co-authored-by: Aleksandr Levochkin <[email protected]>
Co-authored-by: Aleksandr Levochkin <[email protected]>

* removed support highlight logic (#112)

* removed support highlight logic

* removed unused function
peviously was used by supportHighlight

---------

Co-authored-by: Nursultan Dzhumabaev <[email protected]>
Co-authored-by: Aleksandr Levochkin <[email protected]>
Co-authored-by: Aleksandr Levochkin <[email protected]>

* Microsoft mandatory file (#88)

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* version 2.2.0.0 (#119)

* PR Version 2.2.0.0 (#110)

* Initialized SelectionManager instance (Working version)

* Updated packages and config files

* Switched from puppeteer to playwright, and from tslint to eslint + some changes in configs

* Fixed code style according to linter's suggestions

* Updated packages

* Removed jquery

* Removed jasmine-jquery dependency and fixed tests

* Increased visual's version

* Increased the visual's version in pbiviz.json as well

* Changed callback type for addTooltipService method

* Increased version in the lock file

* Removed redundant files

* Updated libraries to latest versions

* Increased versions of API and visual and fixed Karma config

* Added support for keyboard focus

* Updated build workflow

* Fixed lodash imports and improved type checks in tests

* Polished code

* Fixed compilation errors in tests

* Updated libraries

* Updated changelog and set newest API version

* Removed tslint file

* Created formatting model

* Migrated to formatting model

* Changed displayName values for Quaity, Min font size and Max font size. Added minRepetitionsToDisplay to string resources

* Fixed bug with ColorPicker when color was not applied

* supportHighlight logic and tests

* showAll, removed unused packages, packages version up

* moved keys from cababilities to formatting settings

* removed unused npm packages
proper contextmenu handling
renamed settings object
renamed function names from c++ convention to js convention

---------

Co-authored-by: Aleksandr Levochkin <[email protected]>
Co-authored-by: Aleksandr Levochkin <[email protected]>

* removed support highlight logic (#112)

* removed support highlight logic

* removed unused function
peviously was used by supportHighlight

---------

Co-authored-by: Nursultan Dzhumabaev <[email protected]>
Co-authored-by: Aleksandr Levochkin <[email protected]>
Co-authored-by: Aleksandr Levochkin <[email protected]>

* Update codeql-analysis.yml

* Selection fix (#129)

* Change behavior

* Add workaround to deselection

* Increase visual version

* Update comment

---------

Co-authored-by: Iuliia Kulagina <[email protected]>

* Use new array with SelectionIds (#135)

Co-authored-by: Iuliia Kulagina <[email protected]>

---------

Co-authored-by: MulyukovAidar <[email protected]>
Co-authored-by: Nursultan Dzhumabaev <[email protected]>
Co-authored-by: Aleksandr Levochkin <[email protected]>
Co-authored-by: Aleksandr Levochkin <[email protected]>
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Iuliia Kulagina <[email protected]>
Co-authored-by: Iuliia Kulagina <[email protected]>
  • Loading branch information
8 people authored Oct 8, 2024
1 parent f9bbcdb commit 6a8a3bc
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 247 deletions.
62 changes: 20 additions & 42 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main ]
branches: [main, dev, certification]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [main, dev, certification]
schedule:
- cron: '38 0 * * 4'
- cron: '0 0 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
actions: read
contents: read
Expand All @@ -32,40 +21,29 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

language: ['typescript']

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18.x

- name: Install Dependencies
run: npm ci

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.3.4.0
### Visual changes:
* Fix bug with resetting the selection

## 2.3.3.0
### Visual changes:
* Fix bug with bookmarks
Expand Down
41 changes: 41 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->

## Security

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.

## Reporting Security Issues

**Please do not report security vulnerabilities through public GitHub issues.**

Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).

If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).

You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.

## Preferred Languages

We prefer all communications to be in English.

## Policy

Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).

<!-- END MICROSOFT SECURITY.MD BLOCK -->
65 changes: 2 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-wordcloud",
"version": "2.3.3.0",
"version": "2.3.4.0",
"description": "Word Cloud is a visual representation of word frequency and value. Use it to get instant insight into the most important terms in a set.",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,9 +33,7 @@
"d3-transition": "^3.0.1",
"lodash.clone": "^4.5.0",
"lodash.difference": "^4.5.0",
"lodash.flatten": "^4.4.0",
"lodash.includes": "^4.3.0",
"lodash.isarray": "^4.0.0",
"lodash.isempty": "^4.4.0",
"lodash.isstring": "^4.0.1",
"lodash.keys": "^4.2.0",
Expand All @@ -59,9 +57,7 @@
"@types/karma": "^6.3.8",
"@types/lodash.clone": "^4.5.9",
"@types/lodash.difference": "^4.5.9",
"@types/lodash.flatten": "^4.4.9",
"@types/lodash.includes": "^4.3.9",
"@types/lodash.isarray": "^4.0.9",
"@types/lodash.isempty": "^4.4.9",
"@types/lodash.isstring": "^4.0.9",
"@types/lodash.keys": "^4.2.9",
Expand Down
4 changes: 2 additions & 2 deletions pbiviz.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"visual": {
"name": "WordCloud",
"displayName": "WordCloud 2.3.3.0",
"displayName": "WordCloud 2.3.4.0",
"guid": "WordCloud1447959067750",
"visualClassName": "WordCloud",
"version": "2.3.3.0",
"version": "2.3.4.0",
"description": "Word Cloud is a visual representation of word frequency and value. Use it to get instant insight into the most important terms in a set.",
"supportUrl": "https://community.powerbi.com",
"gitHubUrl": "https://github.com/Microsoft/PowerBI-visuals-WordCloud"
Expand Down
20 changes: 2 additions & 18 deletions src/WordCloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,24 +794,7 @@ export class WordCloud implements IVisual {
this.colorPalette = options.host.colorPalette;
this.visualHost = options.host;
const selectionManager: ISelectionManager = this.visualHost.createSelectionManager();
this.behavior = new WordCloudBehavior(selectionManager,
(text: string): ISelectionId[] => {
const dataPoints: WordCloudDataPoint[] = this.data
&& this.data.dataPoints
&& this.data.dataPoints.filter((dataPoint: WordCloudDataPoint) => {
return dataPoint.text.toLocaleLowerCase() === text;
});

return (
dataPoints && dataPoints[0] && dataPoints[0].selectionIds
? dataPoints[0].selectionIds
: []
);
},
() => {
return this.data.dataPoints;
}
);
this.behavior = new WordCloudBehavior(selectionManager);

this.layout = new VisualLayout(null, WordCloud.DefaultMargin);

Expand Down Expand Up @@ -1473,6 +1456,7 @@ export class WordCloud implements IVisual {
};

this.behavior.bindEvents(behaviorOptions);
this.behavior.renderSelection();
}

private scaleMainView(wordCloudDataView: WordCloudDataView): void {
Expand Down
Loading

0 comments on commit 6a8a3bc

Please sign in to comment.