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

Create unit improved #14

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open

Create unit improved #14

wants to merge 4 commits into from

Conversation

mmehta2669
Copy link
Collaborator

Description

I gone further into implementing the CreateUnit Functionality. Ive added more connection to the backend aswell has fix some impletation issues

Fixes #[issue]

(In general, OED likes to have at least one issue associated with each pull request. Replace [issue] with the OED GitHub issue number. In the preview you will see an issue description if you hover over that number. You can create one yourself before doing this pull request. This is where details are normally given on what is being addressed. Note you should not use the word "Fixes" if it does not completely address the issue since the issue would automatically be closed on merging the pull request. In that case use "Partly Addresses #[issue].)

Type of change

(Check the ones that apply by placing an "x" instead of the space in the [ ] so it becomes [x])

  • Note merging this changes the database configuration.
  • This change requires a documentation update

Checklist

(Note what you have done by placing an "x" instead of the space in the [ ] so it becomes [x]. It is hoped you do all of them.)

  • I have followed the OED pull request ideas
  • I have removed text in ( ) from the issue request
  • You acknowledge that every person contributing to this work has signed the OED Contributing License Agreement and each author is listed in the Description section.

Limitations

currently giving errors due when creating units

@Rakesh-Ranga-Buram Rakesh-Ranga-Buram marked this pull request as ready for review November 14, 2024 02:58
Comment on lines +36 to +37
defaultMeterMinimumValue:Number.MIN_SAFE_INTEGER,
defaultMeterMaximumValue:Number.MAX_SAFE_INTEGER,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use
import { MAX_VAL, MIN_VAL } from '../../redux/selectors/adminSelectors';
Both refer to the same value but the above import is used in places where ever the requirement is for max and min values. So please use the above import to mantain uniformity in the code

<Row xs='1' lg='2'>
{/* default Meter Minimum Value input */}
<Col><FormGroup>
<Label for='defaultMeterMinimumValue'>{translate('default.meter.minimum.value')}</Label>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinate with @lawsj on the translations

Comment on lines +85 to +86
defaultMeterMinimumValue: 0,
defaultMeterMaximumValue: 0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For no unit, the values should be -Infinity,Infinity. Please refer to the meeting recording for any clarification

Comment on lines +16 to +17
default_meter_minimum_value INTEGER NOT NULL,
default_meter_maximum_value INTEGER NOT NULL,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed the new columns must be added via ALTER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants