Skip to content

Commit

Permalink
Merge pull request #206 from rciam/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
linathedog authored Aug 20, 2024
2 parents 1dbc649 + 3726ca2 commit d7bc8ce
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog
All notable changes in Federation Registry will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.3]

### Fixed
- Update Values for immediate Review after editing a reconfiguration request
- Copy Service is also available for instances with only one environment

4 changes: 1 addition & 3 deletions federation-registry-frontend/src/FormHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const EditService = (props) => {

useEffect(()=>{
// eslint-disable-next-line react-hooks/exhaustive-deps
if(petitionData&&service&&props.review&&!editPetition){
if(petitionData&&service&&props.review){

let helper = calcDiff(service,petitionData.petition,tenant?.form_config,diff);
let multivalue_attributes = [];
Expand Down Expand Up @@ -209,7 +209,6 @@ const EditService = (props) => {
<ServiceForm disableEnvironment={true} initialValues={editPetition} user={user} changes={changes} {...petitionData.metadata} {...props}/>
</React.Fragment>
:<LoadingBar loading={true}/>

}
</React.Fragment>
:petitionData.metadata.type==='create'?
Expand Down Expand Up @@ -306,7 +305,6 @@ const ViewRequest = (props) => {

localStorage.removeItem('url');
getData();

// eslint-disable-next-line react-hooks/exhaustive-deps
},[]);

Expand Down
6 changes: 3 additions & 3 deletions federation-registry-frontend/src/ServiceForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ const ServiceForm = (props)=> {
}
setFormValues(props.initialValues);
// eslint-disable-next-line react-hooks/exhaustive-deps
},[]);

},[props.initialValues]);


// Returns true
Expand Down Expand Up @@ -984,6 +983,7 @@ const ServiceForm = (props)=> {
initialValues={formValues}
validateOnMount={service_id||petition_id||props.copy}
initialTouched={getInitialTouched(formValues)}
enableReinitialize={true}
validationSchema={schema}
innerRef={formRef}
validate={dynamicValidation}
Expand Down Expand Up @@ -1109,7 +1109,7 @@ const ServiceForm = (props)=> {
onChange={handleChange}
disabled={disabled||tenant.form_config.integration_environment.length===1||props.copy||props.disableEnvironment}
changed={props.changes?props.changes.integration_environment:null}
copybuttonActive={props.owned&&props.disabled&&service_id&&tenant.form_config.integration_environment.length>1}
copybuttonActive={props.owned&&props.disabled&&service_id}
toggleCopyDialog={toggleCopyDialog}
/>
</InputRow>
Expand Down
2 changes: 1 addition & 1 deletion federation-registry-frontend/src/ServiceList.js
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ function TableItem(props) {
</React.Fragment>}
id="dropdown-menu-align-right"
>
{props.service.service_id && props.service.state==='deployed' && props.service.owned&& tenant.form_config.integration_environment.length>1?
{props.service.service_id && props.service.state==='deployed' && props.service.owned?
<Dropdown.Item as='span'>
<div>
<Link to={"#"} onClick={()=>{
Expand Down

0 comments on commit d7bc8ce

Please sign in to comment.