Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@bigbinary/neeto-fields-frontend
Advanced tools
A repo acts as the source of truth for the new nano's structure, configs, data etc.
neeto-fields-nano enables the management of dynamically added fields (often referred as custom fields) for the resources across neeto products.
Add this line to your application's Gemfile:
source "NEETO_GEM_SERVER_URL" do
# ..existing gems
gem 'neeto-fields-engine'
end
And then execute:
bundle install
Add this line to your application's config/routes.rb
file
mount NeetoFieldsEngine::Engine => "/neeto_fields_engine"
Add required migrations in the db/migrate
folder. Run the following
commands to generate the migrations.
rails g neeto_fields_engine:install
This will generate the migration to create the neeto_fields_engine_fields
table (which holds the fields) and neeto_fields_engine_field_values
table
(which holds the value for the fields).
rails db:migrate
rails g neeto_fields_engine:associations
This will prompt the user to enter 2 things:
Owner: It is the ultimate owner of the fields being added. It can be
Organization, Project, etc depending on the business logic. The field will
belongs_to
Owner.
Resource: These are the models, to which we want the dynamic fields to be
attached with. This case be anything like Ticket, Deal, etc depending on the
business logic. The field_value belongs_to
each Resource.
Once you enter the appropriate entries for the prompts asked. It will create an initializer file, which is required for the functioning of the engine.
It will also add necessary associations to respective models, which were considered as Owner and Resources.
Note: You might need to re-arrange the associations statements which are normally inserted to top most lines of the file, to satisfy the Rails standards.
Once you have completed these steps, you are ready to use the neeto-fields-engine.
Install the latest neetoFields nano
package using the below command:
yarn add @bigbinary/neeto-fields-frontend
In order to customize the engine's default behavior, we have several ways.
before_{action}_process
method invoked before the core
action logic and after_{action}_process
method invoked after the core action
logic.NeetoFieldsEngine::Fields::Customizable
or
NeetoFieldsEngine::FieldValues::Customizable
depending on the context.Eg: If you want to do something before update action of
FieldsController
, then define it inbefore_update_process
method inside theNeetoFieldsEngine::Fields::Customizable
concern.
Add this line to your application's Gemfile (replace the path to the local copy of neeto-fields-engine):
gem 'neeto-fields-engine', path: '../neeto-fields-engine'
And then execute:
bundle install
Refer engine installation steps 3 and onwards.
The usage of yalc
is explained in this video:
https://www.youtube.com/watch?v=QBiYGP0Rhe0
See the changes in the host app by executing the following command
Use this command if releasing package for the first time.
yarn build && yalc publish
Use this command to see changes after the initial publish.
yarn release
Setup Instructions.
Visit http://spinkart.lvh.me:9100 and login with email oliver@example.com
and
password welcome
.
yarn build
to bundle the app.FAQs
A repo acts as the source of truth for the new nano's structure, configs, data etc.
The npm package @bigbinary/neeto-fields-frontend receives a total of 0 weekly downloads. As such, @bigbinary/neeto-fields-frontend popularity was classified as not popular.
We found that @bigbinary/neeto-fields-frontend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.