Koen Vlaswinkel
3cd06021d3
Use transient prop for TextButton component
2023-11-02 14:08:29 +01:00
Koen Vlaswinkel
cd0b2fba8a
Use transient prop for HorizontalSpace component
2023-11-02 14:07:55 +01:00
Koen Vlaswinkel
1cc63382c9
Remove unnecessary props type for Dropdown
...
This removes the `disabled` prop from the `Dropdown` component. This is
already included in the default HTML props of the `select` component,
so it's not necessary to add it again.
2023-11-02 14:06:03 +01:00
Koen Vlaswinkel
8e8399988e
Use transient props for Alert component
2023-11-02 14:05:11 +01:00
Koen Vlaswinkel
eaf3a1ce1b
Merge pull request #3031 from github/koesie10/modeled-method-union
...
Switch `ModeledMethod` to union of types
2023-11-02 09:52:33 +01:00
Koen Vlaswinkel
ccaf2ad0b6
Merge remote-tracking branch 'origin/main' into koesie10/modeled-method-union
2023-11-02 09:31:15 +01:00
Charis Kyriakou
7adc114002
Remove unnecessary ModelKindDropdown input ( #3046 )
2023-11-01 15:20:50 +00:00
Charis Kyriakou
3f90564ee3
Add telemetry for method modeling panel ( #3041 )
2023-11-01 15:15:22 +00:00
Koen Vlaswinkel
5378f1afa4
Merge remote-tracking branch 'origin/main' into koesie10/modeled-method-union
2023-11-01 16:11:21 +01:00
Koen Vlaswinkel
b47c561dfa
Merge pull request #3044 from github/koesie10/fix-query-storage-path
...
Fix queries always being created in qlpack root
2023-11-01 16:02:17 +01:00
Charis Kyriakou
2f39364191
Merge pull request #3045 from github/charis/fix-broken-stories
...
Fix some broken storybook stories
2023-11-01 14:59:53 +00:00
Koen Vlaswinkel
ab67060279
Remove provenance from none modeling
2023-11-01 15:58:50 +01:00
Koen Vlaswinkel
dd8d7dfd58
Remove unnecessary nullish coalescing
2023-11-01 15:52:10 +01:00
Koen Vlaswinkel
e25398d1fa
Use createEmptyModeledMethod in more places
2023-11-01 15:51:25 +01:00
Koen Vlaswinkel
5f25fe42c3
Change error message to be distinct
2023-11-01 15:49:01 +01:00
Charis Kyriakou
5ae136bc15
Fix some broken storybook stories
2023-11-01 14:39:09 +00:00
Koen Vlaswinkel
0bec013b73
Fix queries always being created in qlpack root
...
This passes through the query storage path to the qlpack generator so
it's able to create the query in the correct selected folder.
2023-11-01 15:13:43 +01:00
Koen Vlaswinkel
ccb08e19d7
Merge pull request #3040 from github/koesie10/duplicate-query-packs
...
Prevent duplicate query packs when creating a query
2023-11-01 15:02:18 +01:00
Koen Vlaswinkel
8a8a85fb9a
Merge pull request #3033 from github/koesie10/generate-model
...
Add generation of Ruby models
2023-11-01 14:17:10 +01:00
Charis Kyriakou
978d8d38f1
Minor test plan fixes ( #3042 )
2023-11-01 12:17:59 +00:00
Koen Vlaswinkel
456163aba5
Prevent duplicate query packs when creating a query
...
This prevents the creation of duplicate query pack names when creating a
query in the following ways:
- When you have selected a folder, the query pack name will include the
name of the folder. This should prevent duplicate query pack names
when creating queries in different folders.
- When the folder name includes `codeql` or `queries`, we will not
add `codeql-extra-queries-` since that would be redundant.
- After generating the query pack name, we will resolve all qlpacks and
check if one with this name already exists. If it does, we will start
adding an index to the name until we find a unique name.
2023-11-01 11:03:20 +01:00
Charis Kyriakou
fe212c315c
Merge pull request #3039 from github/charisk/method-modeling-language
...
Update method modeling panel language when new db opened
2023-11-01 09:31:53 +00:00
Charis Kyriakou
57fbb8e2e6
Update method modeling panel database item when new db opened
2023-11-01 09:09:25 +00:00
Koen Vlaswinkel
6685883ebf
Merge pull request #3035 from github/koesie10/fix-ref
...
Fix scroll into view not working when revealing method
2023-11-01 09:56:44 +01:00
Koen Vlaswinkel
ad121a5f93
Merge pull request #3037 from github/koesie10/detect-language
...
Detect existing query packs when creating skeleton query
2023-11-01 09:56:24 +01:00
Charis Kyriakou
02c1d7ef9e
Add ability to use a dev endpoint for auto-model ( #3038 )
2023-11-01 08:55:56 +00:00
Charis Kyriakou
e9fb9f52d8
Update method modeling panel language when new db opened
2023-11-01 08:52:44 +00:00
Charis Kyriakou
2988aceddf
Change auto-model default batch size ( #3036 )
2023-10-31 14:46:01 +00:00
Koen Vlaswinkel
abafefdb5e
Detect existing query packs when creating skeleton query
...
This will change the skeleton query wizard to detect existing query
packs when creating a skeleton query. This allows the user to create a
query in an existing query pack that is not named
`codeql-custom-queries-{language}`.
2023-10-31 15:45:48 +01:00
Koen Vlaswinkel
d24352be0a
Merge pull request #3034 from github/koesie10/remove-extlogger-model-editor
...
Remove `extLogger` imports from model editor
2023-10-31 12:55:49 +01:00
Koen Vlaswinkel
50ae7d5b73
Fix scroll into view not working when revealing method
...
This fixes a bug where the method row would not scroll into view when
revealing a method. The problem was that the `DataGridRow` component
on which the `ref` was set is a `display: contents` element, which
does not have a visual representation in the DOM. Therefore, it wasn't
possible to scroll the method row into view. This fixes it by moving
the ref to the `DataGridCell` component of the first column, which is
a normal element.
2023-10-31 11:54:26 +01:00
Koen Vlaswinkel
8e4da4a20e
Remove extLogger imports from model editor
...
We shouldn't be directly using the `extLogger` if we have access to the
app logger (either directly or by passing it in as a parameter). This
removes all imports of `extLogger` from the model editor directory.
2023-10-31 11:32:29 +01:00
Koen Vlaswinkel
2dbc50e009
Remove use of extLogger from generate model queries
2023-10-31 11:04:17 +01:00
Koen Vlaswinkel
5c2050d9bb
Extract addModeledMethodsFromArray method
2023-10-31 10:31:54 +01:00
Koen Vlaswinkel
bb104b53ba
Rename showFlowGeneration to showGenerateButton
2023-10-31 10:31:54 +01:00
Koen Vlaswinkel
474ec197a0
Add generation of Ruby models
...
This adds the ability to generate Ruby models from a database. It uses
the `GenerateModel.ql` query to do this. The query will essentially
return data in the data extensions format, so this will just parse it
and return it as `ModeledMethod` objects.
2023-10-31 10:23:36 +01:00
Shati Patel
135bce889e
Minor fixes to testing.md ( #3032 )
2023-10-30 16:15:39 +00:00
Koen Vlaswinkel
b1aa5914c2
Merge pull request #3017 from hmac/hmac-model-editor-ruby
...
Add experimental model editor support for Ruby
2023-10-30 16:36:15 +01:00
Koen Vlaswinkel
80ae27a453
Extract isSupportedLanguage function
2023-10-30 16:08:00 +01:00
Koen Vlaswinkel
ba1bdacb50
Use INITIAL_MODE instead of hardcoding mode
2023-10-30 15:58:20 +01:00
Koen Vlaswinkel
98b0850f68
Switch ModeledMethod to union of types
...
This allows more disjointed models to be represented more accurately,
such as type models.
2023-10-30 14:26:47 +01:00
Koen Vlaswinkel
c482f2a058
Merge pull request #3025 from github/dependabot/npm_and_yarn/extensions/ql-vscode/msw-2.0.0
...
Bump msw from 0.0.0-fetch.rc-9 to 2.0.0 in /extensions/ql-vscode
2023-10-30 13:07:56 +01:00
Koen Vlaswinkel
f0efebbbc4
Merge pull request #3026 from github/koesie10/ask-for-display-language
...
Use language display name when asking for language
2023-10-30 11:58:57 +01:00
Koen Vlaswinkel
5e0caded52
Merge pull request #3016 from github/koesie10/improve-skeleton-db-download
...
Improve database download prompt when creating query
2023-10-30 11:58:01 +01:00
Koen Vlaswinkel
0951dde2c4
Implement changes for MSW 2.0.0
2023-10-30 11:28:51 +01:00
Nora
33992129ed
Merge pull request #3029 from github/nora/progress-reporting-code-search
...
Code Search: use withProgress to indicate api request progress
2023-10-27 17:09:57 +02:00
Nora
5caf11e7b7
Polish naming
2023-10-27 14:51:16 +00:00
Koen Vlaswinkel
43e60b20db
Merge pull request #3030 from github/koesie10/fix-data-flow-paths-dropdown
...
Fix data flow path dropdown not updating
2023-10-27 16:48:02 +02:00
Koen Vlaswinkel
c77a57f383
Store available modes per language
2023-10-27 15:50:46 +02:00
Koen Vlaswinkel
92ad718df1
Fix data flow path dropdown not updating
2023-10-27 14:40:19 +02:00