Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: October 2020 #747

Merged
merged 50 commits into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a2a82d7
package.json
jobala Jul 9, 2020
b408cd0
Merge branch 'dev' of https://github.com/microsoftgraph/microsoft-gra…
jobala Jul 10, 2020
31d0e53
chore(release): 4.1.4
thewahome Jul 21, 2020
eeddfdf
add 4.1.4 build files
thewahome Jul 21, 2020
d21c5dc
chore(release): 4.1.5
thewahome Jul 23, 2020
66b7465
add version 4.1.5 build files
thewahome Jul 23, 2020
5b0c681
Merge branch 'master' into release/july-2020-2
thewahome Jul 23, 2020
a7b7f7a
Release: july 2020 2 (#657)
thewahome Aug 5, 2020
84eaeaa
fix copy paste failure when query bar is empty
thewahome Aug 5, 2020
f47d237
Fix: copy paste query address bar (#658)
thewahome Aug 6, 2020
4d9dc4c
HB of localized GE.jsons (#660)
OfficeGlobal Aug 6, 2020
886d437
Merge branch 'dev' of https://github.com/microsoftgraph/microsoft-gra…
jobala Aug 18, 2020
2fccf7b
ci: add Azure Static Web Apps workflow file
msftgits Aug 27, 2020
261b210
change multiline property
ElinorW Sep 1, 2020
569bf53
Fix: Message bar truncation (#679)
ElinorW Sep 1, 2020
764fda5
Merge branch 'dev' into fix/accessibility-support
ElinorW Sep 1, 2020
fffa620
remove main tag
ElinorW Sep 1, 2020
5e634dd
Fix: Remove main tag (#680)
ElinorW Sep 1, 2020
d0de298
Fix: sovereign clouds metadata (#676)
thewahome Sep 1, 2020
653e716
Feature: Add Graph toolkit tab (#452)
thewahome Sep 8, 2020
53a6d0e
Feature: History items ttl (#677)
thewahome Sep 14, 2020
4419110
Fix: add fallback texts to placeholder text (#690)
thewahome Sep 14, 2020
7ed34a4
Merge branch 'dev' into task/ui-polish
ElinorW Sep 14, 2020
6673abb
Localize tooltip message
ElinorW Sep 14, 2020
8e74a2e
add render details header function
ElinorW Sep 14, 2020
eee72a4
add tooltip on 'admin consent required' header
ElinorW Sep 14, 2020
44ca29c
remove unnecessary white space
ElinorW Sep 14, 2020
fb53cae
add translate message function
ElinorW Sep 14, 2020
72fee85
add tooltip on permissions panel
ElinorW Sep 14, 2020
e5ae6b2
Task: Add tooltip to 'admin consent required' header(#692)
ElinorW Sep 14, 2020
7aca4fc
Fix: remove unnecessary code snippets tab (#695)
thewahome Sep 16, 2020
01dd5e9
Task: update azure pipeline (#691)
thewahome Sep 16, 2020
76597e3
Task: HandBack of localized GE.jsons (#698)
OfficeGlobal Sep 16, 2020
a4dac37
Task: Reduce padding/spacing on request header (#696)
ElinorW Sep 16, 2020
e9ae01e
Release: sept 2020 (#701)
thewahome Sep 17, 2020
02060e7
Task: removes depracated setConsent method (#703)
thewahome Sep 18, 2020
a597572
Merge branch 'dev' of https://github.com/microsoftgraph/microsoft-gra…
jobala Sep 21, 2020
4fa4734
Merge branch 'master' into dev
thewahome Sep 29, 2020
956ae37
Task: Change adaptive cards message (#704)
ElinorW Oct 5, 2020
61e761f
Telemetry for Graph Explorer usage (#672)
millicentachieng Oct 8, 2020
ca4027c
HB of localized GE.jsons (#727)
OfficeGlobal Oct 8, 2020
c8e998c
Task: display history items ttl message (#733)
thewahome Oct 13, 2020
e3a6474
Fix: create onenote page (#708)
thewahome Oct 13, 2020
4551bd0
Merge branch 'dev' of https://github.com/microsoftgraph/microsoft-gra…
jobala Oct 15, 2020
65bed59
Format code on save and paste
jobala Oct 15, 2020
571ef64
Merge pull request #741 from microsoftgraph/task/code-formatting
jobala Oct 15, 2020
059acb3
Fix: breaking change with the adaptive cards templating library (#735)
ElinorW Oct 15, 2020
9ab8a05
HB of localized GE.jsons (#742)
OfficeGlobal Oct 15, 2020
c592276
chore(release): 4.1.10
thewahome Oct 22, 2020
e4b1450
Merge branch 'master' into release/october-2020
thewahome Oct 22, 2020
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ yarn-error.log*

.idea
.vscode
.vs
14 changes: 12 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@
"**/node_modules": true,
"**/.github": true,
},
"files.trimTrailingWhitespace": true
}
"files.trimTrailingWhitespace": true,
"editor.codeActionsOnSave": {
"source.fixAll.tslint": true
},
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"eslint.validate": [
"typescript",
"typescriptreact"
],
}
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
npm run build
env:
REACT_APP_CLIENT_ID: $(REACT_APP_STAGING_CLIENT_ID)
REACT_APP_INSTRUMENTATION_KEY: $(REACT_APP_INSTRUMENTATION_KEY)
REACT_APP_INSTRUMENTATION_KEY: $(REACT_APP_STAGING_INSTRUMENTATION_KEY)
displayName: 'Build static assets for staging'

- task: PowerShell@2
Expand Down
118 changes: 111 additions & 7 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "graph-explorer-v2",
"version": "4.1.9",
"version": "4.1.10",
"private": true,
"dependencies": {
"@babel/core": "7.2.2",
"@microsoft/applicationinsights-react-js": "2.3.1",
"@microsoft/applicationinsights-web": "2.3.1",
"@microsoft/microsoft-graph-client": "2.0.0",
"@microsoft/microsoft-graph-client": "2.1.0",
"@svgr/webpack": "4.1.0",
"@uifabric/react-cards": "0.109.101",
"@uifabric/styling": "7.13.1",
"adaptivecards": "1.2.3",
"adaptivecards-templating": "0.1.0-alpha.1",
"adaptivecards-templating": "1.4.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
Expand Down
28 changes: 17 additions & 11 deletions src/app/services/actions/adaptive-cards-action-creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { IAction } from '../../../types/action';
import { IQuery } from '../../../types/query-runner';
import { lookupTemplate } from '../../utils/adaptive-cards-lookup';
import {
FETCH_ADAPTIVE_CARD_ERROR ,
FETCH_ADAPTIVE_CARD_ERROR,
FETCH_ADAPTIVE_CARD_PENDING,
FETCH_ADAPTIVE_CARD_SUCCESS
FETCH_ADAPTIVE_CARD_SUCCESS,
} from '../redux-constants';

export function getAdaptiveCardSuccess(result: string = ''): IAction {
Expand All @@ -18,20 +18,22 @@ export function getAdaptiveCardSuccess(result: string = ''): IAction {
export function getAdaptiveCardError(error: string): IAction {
return {
type: FETCH_ADAPTIVE_CARD_ERROR,
response: error
response: error,
};
}

export function getAdaptiveCardPending(): IAction {
return {
type: FETCH_ADAPTIVE_CARD_PENDING,
response: ''
response: '',
};
}

export function getAdaptiveCard(payload: string, sampleQuery: IQuery): Function {
export function getAdaptiveCard(
payload: string,
sampleQuery: IQuery
): Function {
return async (dispatch: Function) => {

if (!payload) {
// no payload so return empty result
return dispatch(getAdaptiveCardSuccess());
Expand All @@ -51,20 +53,24 @@ export function getAdaptiveCard(payload: string, sampleQuery: IQuery): Function
dispatch(getAdaptiveCardPending());

return fetch(`https://templates.adaptivecards.io/graph.microsoft.com/${templateFileName}`)
.then(resp => resp.json())
.then((resp) => resp.json())
.then((fetchResult) => {
if (fetchResult.error) {
throw (fetchResult.error);
throw fetchResult.error;
}
// create a card from the template
const template = new AdaptiveCardsTemplateAPI.Template(fetchResult);
const context = new AdaptiveCardsTemplateAPI.EvaluationContext();
context.$root = payload;
const context: AdaptiveCardsTemplateAPI.IEvaluationContext = {
$root: payload,
};
AdaptiveCardsTemplateAPI.GlobalSettings.getUndefinedFieldValueSubstitutionString = (
path: string
) => ' ';
const card = template.expand(context);
// give back the result of the card
return dispatch(getAdaptiveCardSuccess(card));
})
.catch(error => {
.catch((error) => {
// something wrong happened
return dispatch(getAdaptiveCardError(error));
});
Expand Down
5 changes: 0 additions & 5 deletions src/app/services/actions/query-action-creator-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ const makeRequest = (httpVerb: string, scopes: string[]): Function => {

if (query.sampleHeaders && query.sampleHeaders.length > 0) {
query.sampleHeaders.forEach(header => {

// We are relying on the graph client to set the content type header.
if (header.name.toLowerCase() === 'content-type') {
return;
}
sampleHeaders[header.name] = header.value;
});
}
Expand Down
1 change: 1 addition & 0 deletions src/app/services/actions/query-action-creators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ async function createHistory(response: Response, respHeaders: any, query: IQuery


const historyItem: IHistoryItem = {
index: -1,
url: query.sampleUrl,
method: query.selectedVerb,
headers: query.sampleHeaders,
Expand Down
3 changes: 2 additions & 1 deletion src/app/views/query-response/QueryResponse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Mode } from '../../../types/enums';
import { IQueryResponseProps, IQueryResponseState } from '../../../types/query-response';
import { copy } from '../common/copy';
import { createShareLink } from '../common/share';
import { getPivotItems } from './pivot-items/pivot-items';
import { getPivotItems, onPivotItemClick } from './pivot-items/pivot-items';
import './query-response.scss';

class QueryResponse extends Component<IQueryResponseProps, IQueryResponseState> {
Expand Down Expand Up @@ -122,6 +122,7 @@ class QueryResponse extends Component<IQueryResponseProps, IQueryResponseState>
</>}
<Pivot className='pivot-response'
styles={{ root: { display: 'flex', flexWrap: 'wrap' } }}
onLinkClick={(pivotItem) => onPivotItemClick(pivotItem)}
>
{pivotItems}
</Pivot>
Expand Down
Loading